(CBS/AP) CAIRO — Protesters angered over a film that ridiculed Islam’s Prophet Muhammad fired gunshots and burned down the U.S. consulate in the eastern Libyan city of Benghazi, killing one American, witnesses and the State Department said. In Egypt, protesters scaled the walls of the U.S. Embassy in Cairo, tearing and replacing the American flag with an Islamic banner.

Tuesday’s attacks were the first such assaults on U.S. diplomatic facilities in either country, at a time when both Libya and Egypt are struggling to overcome the turmoil following the ouster of their longtime leaders, Muammar Qaddafi and Hosni Mubarak, in uprisings last year.

The protests in both countries were sparked by outrage over a film ridiculing Muhammad produced by an American in California and being promoted by an extreme anti-Muslim Egyptian Christian campaigner in the United States. Excerpts from the film, dubbed into Arabic, were posted on YouTube.

U.S. Secretary of State Hillary Clinton confirmed that one State Department officer had been killed in the protest at the U.S. consulate in Benghazi. She strongly condemned the attack and said she had called Libyan President Mohammed el-Megarif “to coordinate additional support to protect Americans in Libya.”

More in After the Arab Spring

Clinton expressed concern that the protests might spread to other countries. She said the U.S. is working with “partner countries around the world to protect our personnel, our missions, and American citizens worldwide.”

“Some have sought to justify this vicious behavior as a response to inflammatory material posted on the Internet,” Clinton said in the statement released by the State Department. “The United States deplores any intentional effort to denigrate the religious beliefs of others. Our commitment to religious tolerance goes back to the very beginning of our nation. But let me be clear: There is never any justification for violent acts of this kind.”

Sam Bacile, an American citizen who said he produced, directed and wrote the two-hour film, has gone into hiding, The Associated Press reports.

He told the AP from an undisclosed location that he had not anticipated such a furious reaction.

“I feel sorry for the embassy. I am mad,” Bacile said.

The incidents also led to an exchange between the campaigns of Republican standard bearer Mitt Romney and President Obama.

In Benghazi, a large mob stormed the U.S. consulate, with gunmen firing their weapons, said Wanis al-Sharef, an Interior 하남출장마사지 Ministry official in Benghazi. A witness said attackers fired automatic weapons and rocket-propelled grenades at the consulate as they clashed with Libyans hired to guard the facility.

Outnumbered by the crowd, Libyan security forces did little to stop them, al-Sharef said.

The crowd overwhelmed the facility and set fire to it, burning most of it and looting the contents, witnesses said.

One American was shot to death and a second was wounded in the hand, al-Sharef said. He did not give further details.

The violence at the consulate lasted for about three hours, but the situation has now quieted down, said another witness.

“I heard nearly 10 explosions and all kinds of weapons. It was a terrifying day,” said the witness who refused to give his name because he feared retribution.

Hours before the Benghazi attack, hundreds of mainly ultraconservative Islamist protesters in Egypt marched to the U.S. Embassy in downtown Cairo, gathering outside its walls and chanting against the movie and the U.S. Most of the embassy staff had left the compound earlier because of warnings of the upcoming demonstration.

“Say it, don’t fear: Their ambassador must leave,” the crowd chanted.

Dozens of protesters then scaled the embassy walls, and several went into the courtyard and took down the American flag from a pole. They brought it back to the crowd outside, which tried to burn it, but failing that tore it apart.

The protesters on the wall then raised on the flagpole a black flag with a Muslim declaration of faith, “There is no god but Allah and Muhammad is his prophet.” The flag, similar to the banner used by al Qaeda, is commonly used by ultraconservatives around the region.