Libya’s prime minister, who was abducted briefly by gunmen this week, lashed out Friday against the unruly militias stirring chaos, saying they are trying to “terrorize” the government and turn the North African nation into another Afghanistan or Somalia.

In a sign of the turmoil, a car bomb detonated outside a building housing the Swedish and Finnish consulates in the eastern city of Benghazi, where militias are particularly prominent. No one was hurt in the blast, but it damaged the building’s facade. The city, Libya’s second-largest, has seen frequent violence, including killings of security officials, as well as a string of attacks on foreign diplomatic missions that have driven most of their staffs out of the city.

With his nationally televised address, Libya’s embattled Prime Minister Ali Zidan appeared to be seeking to leverage outrage over his abduction into momentum against the multiple armed groups that have run rampant in the country since the 2011 toppling of dictator Moammar Gadhafi. Militias have defied attempts by the weak central authorities to rein them in and often use violence against officials.

Zidan has been struggling with militias since he was named a year ago by parliament to lead the first democratically formed government since Gadhafi’s ouster and death. The tensions were enflamed by last Saturday’s raid by U.S. special forces that snatched al-Qaida suspect Nazih Abdul-Hamed al-Ruqai, known as Abu Anas al-Libi, off the streets of the capital and whisked him off to custody in a U.S. warship.

The raid angered many militiamen, who accused Zidan of collaborating in the abduction of a Libyan citizen. Zidan, who has cultivated close security cooperation with the U.S., denied any prior knowledge of the operation. The raid is believed to have prompted Zidan’s own abduction on Thursday, when gunmen stormed into the luxury Tripoli hotel where he lives and took him away, holding him for several hours.

Islamic hard-liners held marches in Tripoli on Friday, denouncing the raid and criticizing the government.

The militias originated in the “revolutionary” brigades that fought Gadhafi’s forces. Since his ouster, they have refused to disarm and have mushroomed in size and power. Many have been enlisted by the state to serve as security forces, since the army and police are weak, underequipped and under-paid. But they often continue to act as armed vigilante factions with their own interests, and some follow radical al-Qaida-style ideologies or are believed to have links to the terror organization.

Touting themselves as “revolutionaries,” some have long demanded Zidan’s removal since he once served as an ambassador under Gadhafi. Militias have in the past besieged government buildings and carried out kidnappings — including the abduction last month of the defense minister’s son, apparently to pressure him against trying to rein in the groups.

Zidan appeared on TV alongside members of his government, and warned that “there are those who want to take Libya into the unknown. They want to turn Libya into Afghanistan or Somalia.”

“They claim that I do not love the revolutionaries,” he said, countering that he had veterans of the anti-Gadhafi fight in his Cabinet. “But there are those who have come with guns and bombs to press various individual demands, and I have refused them. They impede the development of the army and police.”

Zidan’s abduction raised alarm among some Libyans over the boldness of the militias. The Revolutionaries Operation Room includes many militiamen who refused to join the military.