Libyan officials say six soldiers were killed in clashes between special forces and armed activists who stormed several military facilities.
The clashes erupted early Saturday in the eastern city of Benghazi. Residents say the unrest began several hours after a group of people forced their way into a different military compound in the city.
There was no immediate claim of responsibility for the incident.
But there have been heightened tensions in Benghazi since a clash between protesters and a government-aligned militia left 31 people dead, last week.
The violence began after protesters stormed a base used by Islamist militias who are paid by the government to help maintain security.
The incident prompted the resignation of an Army official who was in charge of the militias.
He had been criticized for delays in forming a national army and for allowing the militias to thrive.