BENGHAZI - The US ambassador to Libya and three embassy staff were killed in an attack on the Benghazi consulate and a safe house refuge, stormed by Islamist gunmen blaming America for a film 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 Muammar Gaddafi's 42-year rule, late on Tuesday evening as another assault was mounted on the U.S. embassy in Cairo. California-born ambassador Christopher Stevens was killed in the assault, but it was not clear how or where he died. US consular staff were rushed to a safe house after the initial attack, Libya's Deputy Interior Minister Wanis Al-Sharif said. An evacuation plane with US commandos units then arrived from Tripoli to evacuate them from the house. "It was supposed to be a secret place and we were surprised the armed groups knew about it. There was shooting," Sharif said. Two US personnel were killed there, he said. Two other people were killed at the main consular building and between 12 and 17 wounded. The attack raised questions about the future U.S. diplomatic presence in Libya, relations between Washington and Tripoli, the unstable security situation in post-Gaddafi Libya and whether more protests might erupt in the Muslim world over the film. The amateurish film, promoted by a U.S. pastor, portrayed Mohammad as a fool, a philanderer and a religious fake. In one clip posted on YouTube, Mohammad was shown in an apparent sex act with a woman. For many Muslims it is blasphemous to depict the Prophet and the incident had echoes of the publication in a Danish newspaper of cartoons that touched off riots in the Middle East, Africa and Asia in 2006 in which at least 50 people died. US 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 US diplomatic posts worldwide. US Secretary of State Hillary Clinton said the attack was the work of a "small and savage group" not the government or people of Libya. Descriptions of the consulate attack described chaos and bloodshed, with Libyan security over-run and retreating. "We started shooting at them, and then some other people also threw hand-made bombs over the fences and started the fires in the buildings," said 17-year-old Hamam, who took part in the assault and refused to give his last name. "There was some Libyan security for the embassy outside but when the hand-made bombs went off they ran off and left," said Hamam, who said he saw an American die in front of him in the mayhem that ensued. He said he his body was covered in ash. 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. Ansar al-Sharia cars arrived at the start of the protest but left once fighting started, Hamam said. "The protesters were running around the compound just looking for Americans, they just wanted to find an American so they could catch one."