A device exploded at the gate of the Iranian ambassador's residence in the Libyan capital Tripoli on Sunday, a Libyan security official said. 'Nobody was hurt,' he said. The residence lies in a central district of Tripoli.