A car bomb has gone off outside the Swedish Consulate in the eastern city of Benghazi, badly damaging the building, Libyan officials say. No casualties were reported.
The car bomb was detonated by remote control.
Benghazi has been hit by a wave of attacks and targeted killings in recent months as security agencies struggle to secure Libya since the 2011 civil war.
Militants attacked the US Consulate in Benghazi last year, killing the US ambassador and three other Americans.