The Swedish consulate in Libya has become the latest target for militants in the country.
A car bomb exploded outside the compound in Benghazi on Friday, damaging the building’s front and nearby houses.
There were no reports of any casualties, as the embassy is usually closed on Fridays.
It is the latest in a series of attacks on foreign embassies in Libya. Earlier this month, Russian embassy staff were withdrawn after gunmen attacked its compound in Tripoli. A car bomb was also found outside the Italian embassy in June.
The most serious assault was on the US Consulate in Benghazi last year, which killed four Americans including the US ambassador.
The attack comes a day after Libya’s Prime Minister Ali Zeidan was abducted briefly by a group of former rebels.
There has been anger at a US special forces raid, which captured a Libyan al Qaeda suspect in Tripoli at the weekend. Islamist militants have called for revenge attacks and accused the Libyan government of authorising the raid.