Car bombs went off outside the Egyptian and United Arab Emirates embassies in the Libyan capital on Thursday, causing some damage to the long-shuttered buildings but no casualties, officials said.