BBC- An American has been killed and at least one other wounded after militiamen stormed the US consulate in the Libyan city of Benghazi, officials say.
It is believed the protest was held over a US-produced film that is said to be insulting to the Prophet Muhammad.
The building was set on fire after armed men raided the compound with grenades.
Protests have also been held at the US embassy in the Egyptian capital, Cairo.
In the attack in Benghazi, unidentified armed men stormed the grounds, shooting at buildings and throwing handmade bombs into the compound.
Security forces returned fire but Libyan officials say they were overwhelmed.
"One American official was killed and another injured in the hand. The other staff members were evacuated and are safe and sound," Libya's deputy interior minister Wanis al-Sharif told AFP.
The identity of the US official killed is not yet known. The consular worker was reported to have been shot.
Social media calls
Reports say a militia known as the Ansar al-Sharia brigade was involved in the attack, but the group has denied the claim, the BBC's Rana Jawad in Tripoli reports.
Our correspondent says many people are still armed following the conflict that overthrew Muammar Gaddafi last year.
The US said it condemned the attack "in the strongest terms" and was working with Libyan security forces to secure the compound, a statement by US state department spokeswoman Victoria Nuland said.
The film that sparked the demonstration is said to have been produced by a 52-year-old US citizen from California named Sam Bacile, and promoted by an expatriate Egyptian Copt.
The two men are described as having anti-Islamic views.
A trailer of the low-budget movie has appeared on YouTube and translated in Arabic.
There were calls on social media networks for protests against US interests in the capital, Tripoli, but no disturbances have been confirmed, our correspondent says.
The rally followed a demonstration in Cairo, in which protesters breached the US embassy and tore down the United States flag, which was flying at half mast to mark the 9/11 attacks, and replaced it with an Islamist banner.
'Abuse freedom of speech'
Thousands of protesters had gathered outside the US embassy in the Egyptian capital.
Egyptian protesters condemned what they said was the humiliation of the Prophet of Islam under the pretext of freedom of speech.
"Both Muslims and Christians are participating in this protest against this offence to Islam," said one protester, according to the Associated Press.
The US embassy earlier issued a statement condemning "the continuing efforts by misguided individuals to hurt the religious feelings of Muslims - as we condemn efforts to offend believers of all religions".
The statement added: "We firmly reject the actions by those who abuse the universal right of free speech to hurt the religious beliefs of others."
The protests have now ended, the state department said. There were no reports of injuries.-->