- Libya's army issues ultimatum to militias in the capital and surrounding cities
- The move comes after protesters overtake an Islamist group's HQ in Benghazi
- On Saturday two militias agreed to close bases in the city Derna
Tripoli, Libya (CNN) -- The Libyan army has issued an ultimatum giving militias 48 hours to withdraw from military compounds, public buildings and property belonging to members of the former regime in the country's capital and surrounding cities, the state-run LANA news agency said Sunday.
A statement from the army vowed to "use force to carry out these orders," LANA said.
The announcement came after hundreds marched in the eastern city of Benghazi and took over the headquarters of Islamist militia Ansar al-Sharia. Individuals from the radical Islamist group are accused of having been involved in the attack earlier this month that left four Americans dead.
Protesters Friday demanded an end to all security activities of armed groups operating outside the official command of the army or police.
On Saturday, state news and a source said two Islamist militias had agreed to close their bases in the eastern Libyan city of Derna. A third base will be shut on Sunday, said the source, who spoke on the condition of anonymity.
The state-run LANA news agency said the militias, which it identified as Bou Salim Martyrs and Ansar al-Sharia, will also disband.
Members of Ansar al-Sharia are among the eight people detained in connection with the September 11 assault on the U.S. Consulate in Benghazi, Libya's prime minister said last week, though he added that not all the attackers came from one specific group.
Initial reports indicated that, ahead of the consular attack, Ansar al-Sharia had organized a protest to decry an inflammatory film that mocks the Prophet Mohammed and also protest the United States, where the film was privately produced.
U.S. Ambassador Chris Stevens was one of four Americans slain in the assault.
The deadly attack on the U.S. Consulate underscores the power vacuum across Libya since the toppling of Moammar Gadhafi's regime last year, one analyst told CNN.
Fighting groups that battled Gadhafi have stepped in to maintain law and order after the fall of the regime, said Frederic Wehrey, a senior associate in the Middle East Program at the Carnegie Endowment for International Peace.
The fledgling government is in a bind, he said, as officials try to demobilize militias and bring these groups into the government security forces.
Militia members across Libya remain loyal to their groups and distrust the new government's authority, in part because of the "taint" of a link to the Gadhafi regime, Wehrey said.
In a February report, Amnesty International said armed militias in Libya were committing human rights abuses with impunity, threatening to destabilize the country and hindering its efforts to rebuild.
CNN's Arwa Damon, Salma Abdelaziz and Joe Sterling contributed to this report.