"We remind America, if they intervene, of their defeats in Afghanistan, Iraq and Somalia, because they would face in Libya something much worse," he said in a statement.
UN experts say arms trafficking out of Libya is fueling conflict, insecurity and terrorism on several continents.
Libyan Prime Minister Ali Zeidan said on Friday the government was safe and security under control, dismissing a statement by a senior army official calling for the parliament to be suspended and the armed forces to "rescue" the country.
Several thousand Libyans marched in Tripoli and Benghazi on Friday to demand the dissolution of the interim national parliament, whose mandate was due to run out on Friday with the country divided over its future.
Unidentified gunmen tried to storm into the Libyan army command headquarters in Tripoli on Thursday, clashing with soldiers there before stealing a few rifles and some vehicles, the army and a military source said.
Under pressure from armed militias, Libya’s parliament passed a sweeping law on Sunday that bans anyone who served as a senior official under Muammar Gaddafi.
Muammar Gaddafi's only daughter has been granted asylum in Oman after being thrown out of Algeria last year for repeatedly setting her safe-house on fire in fits of anger, according to a media report.
Insecurity blights Libya, where militias still call the shots a year after they toppled Muammar Gaddafi.
Libyan leader Mohammed Magarief has said not all areas of the North African country have been fully "liberated", one year after the capture and death of dictator Muammar Gaddafi.
Shelling by Libyan pro-government forces has killed three people including a child in the former Gaddafi stronghold of Bani Walid, a local militia leader said on Tuesday.
Libya's prime minister-elect said on Thursday he had withdrawn his proposed government list, just a day after presenting it to the national congress for approval, after protesters stormed the assembly and politicians voiced discontent over his nominations.
The US defence and intelligence agencies are preparing the groundwork for operations to kill or capture militants responsible for the attack on its mission in Libya's eastern city of Benghazi resulting in death of four Americans including its Ambassador.
A French secret serviceman shot dead Libya's former strongman Col Muammar Gaddafi and not a lynch mob of rebels as he lay trapped and cornered in a sewage pipe in his home town of Sirte.
The man accused of having helped orchestrate some of the worst crimes committed by the regime of ex-Libyan leader Muammar Gaddafi has been extradited back to Libya, according to a Mauritanian government statement.
Libya's national assembly picked former opposition leader Mohammed Magarief as its president as the North African country's newly elected congress began its rule.