The U.S. ambassador to Libya and three embassy staff were killed as they rushed away from a consulate building in Benghazi, stormed by al-Qaeda-linked gunmen blaming America for a film that they said insulted the Prophet Mohammad.
Gunmen had attacked and set fire to the U.S. consulate in the eastern city of Benghazi, the cradle of last year's uprising against Moammar Gadhafi's 42-year rule, late on Tuesday evening as another assault was mounted on the U.S. embassy in Cairo.
The California-born ambassador, Christopher Stevens, was trying to leave the consulate building for a safer location as part of an evacuation when gunmen launched an intense attack, apparently forcing security personnel to withdraw.
"The American ambassador and three staff members were killed when gunmen fired rockets in their direction," a Libyan official in Benghazi told Reuters. Airport sources said the bodies were due to be flown from Benghazi to Tripoli.
The attack was believed to have been carried out by Ansar al-Sharia, an al-Qaeda-style Sunni Islamist group that has been active in Benghazi, a Libyan security official said. Witnesses said the mob also included tribesmen, militia and other gunmen.
The attack raised questions about the future U.S. diplomatic presence in Libya, relations between Washington and Tripoli, the unstable security situation in post-Gadhafi Libya and whether more protests might take place in the Muslim world.
The film portrayed Mohammad as a fool, a philanderer and a religious fake. In one clip posted on YouTube, Mohammad was shown in an apparent sexual act with a woman. For many Muslims it is blasphemous even to show a depiction of the Prophet.
U.S. President Barack Obama, whose administration supported the Libyan insurgency with funds, weapons and training, branded the killing an "outrageous attack" and ordered increased security at U.S. diplomatic posts worldwide.
"I strongly condemn the outrageous attack on our diplomatic facility in Benghazi," Mr. Obama said in the statement. The four Americans, he said, "exemplified America's commitment to freedom, justice, and partnership with nations and people around the globe."
The State Department identified one of the other Americans killed Tuesday as Sean Smith, a foreign service information management officer. The identities of the others were being withheld pending notification of next of kin.
KARZAI CONDEMNS "DEVILISH ACT"
A Danish newspaper caused a storm of protest across Islamic nations in 2005 by printing cartoons lampooning Islam and the Prophet Mohammad in 2005, the most famous depicted him wearing a bomb in his turban. The images touched off riots in the Middle East, Africa and Asia in 2006 in which at least 50 people died.
Afghan President Hamid Karzai sharply condemned the film in a statement, calling its making a "devilish act", saying he was certain those involved in its production represented a very small minority.
U.S. ambassadors in such volatile countries as Libya are accompanied by tight security, usually travelling in well-protected convoys. Diplomatic missions are usually protected by marines or other special forces.
Mr. Stevens grew up in California, graduated from Berkeley and worked in North Africa as a Peace Corps volunteer. He taught English in Morocco before joining the foreign service where he worked in the Middle East and North Africa.
Libya's interim government has struggled to impose its authority on a myriad of armed groups that refused to lay down their weapons and often take the law into their own hands.
Security experts say the area around Benghazi is host to a number of Islamist militant groups who oppose any Western presence in Muslim countries.
The worst-case scenario for Western governments is that a spate of recent attacks could be the start of an Iraq-style insurgency by Islamist militants. That could have an impact on oil exports as the energy sector depends on foreign workers.
However, security analysts say an insurgency is unlikely to gain the kind of traction it had in Iraq, mainly because Western states have no military presence on the ground in Libya.
Libyan Deputy Prime Minister Mustafa Abu Shagour condemned the killing of the U.S. diplomats as a cowardly act.
The consular officials were killed after heavy clashes between Libyan security forces and Islamist militants around the consulate building. Looters raided the empty compound and some onlookers took pictures after calm returned.
"The Libyan security forces came under heavy fire and we were not prepared for the intensity of the attack," said Abdel-Monem Al-Hurr, spokesman for Libya's Supreme Security Committee.
U.S. pastor Terry Jones, who had inflamed anger in the Muslim world in 2010 with plans to burn the Koran, said he had promoted "Innocence of Muslims", which U.S. media said was produced by an Israeli-American property developer.
Mr. Jones, a pastor in Florida whose latest stunt fell on the anniversary of the Sept. 11, 2001, attacks on the World Trade Center and the Pentagon, triggered riots in Afghanistan in 2010 with his threat to burn the Koran.
Many Muslims consider any depiction of the Prophet as offensive and any depiction of him can cause furious protests in the Islamic world as well as among Muslims in Europe.
CHARRED WALLS, FIRE BURNS
On Wednesday morning, the compound in Benghazi stood empty, with passers-by freely walking in to take a look at the damage.
Walls were charred and a small fire burned inside one of the buildings. A small group of men was trying to extinguish the flames and three security men briefly surveyed the scene.
A Reuters reporter saw chairs, table and food lying alongside empty shells. Some blood stains could also be seen in front of one of the buildings. Three cars were burnt out.
In neighbouring Egypt, demonstrators had torn down an American flag and burned it during a protest against the film. Some tried to raise a black flag with the words "There is no God but God, and Mohammad is his messenger".
The crowd of around 2,000 protesters in Cairo protesting against the film was a mixture of Islamists and teenage soccer fans known for fighting police and who played a part in the revolt that toppled Egypt's leader Hosni Mubarak last year.
Egypt's Coptic Orthodox Church condemned in a statement some Copts living abroad who it said financed "the production of a film insulting the Prophet Mohammad", an Egyptian state website said. About a 10th of Egypt's 83 million people are Christian.
The fortress-like U.S. mission in Cairo is near Tahrir Square, where Egypt's uprising began and the scene of many protests since. Youths danced and chanted football songs. A Reuters reporter said they appeared to climb into the embassy compound almost as an afterthought.
"We sacrificed dozens and hundreds during the uprising for our dignity. The Prophet's dignity is more important to us and we are ready to sacrifice millions," said mosque preacher Mohamed Abu Gabal who joined the protest.
With a report from Associated Press