Libyan officials say suspected Islamic militants have attacked a government security headquarters in the eastern city of Benghazi, killing five soldiers and a policeman.
Officials say the building came under mortar fire.
Libyan troops were sent to the scene and engaged the attackers. Explosions could be heard during the firefight.
Twelve soldiers were wounded in the fighting and three are listed as missing.
Medical sources say some of the dead bodies showed signs of torture.
Benghazi is a stronghold of militias with roots in the rebel brigades that toppled long-time Libyan dictator Moammar Gadhafi in 2011.
The U.S. ambassador and three other Americans were killed in Benghazi in September 2012 during an assault by militants on the U.S. consulate.