A bomb exploded in front of the Spanish embassy in the Libyan capital late on Monday, residents said, the latest in a string of attacks on foreign missions in the North African country. Spain, like most western and Arab countries, has pulled out its diplomats from Tripoli, Reuters reported.