Yemeni protesters on Thursday stormed the American embassy complex before being driven out by police, an AFP reporter said, as angry Muslim protests grew over a film mocking Islam.
All protesters who breached the fence of the US mission in Sanaa have been ejected, the correspondent reported, as security forces used water cannon and fired warning shots.
Police also fired warning shots earlier to disperse thousands of protesters as they approached the main gate of the mission.
"O, messenger of Allah... O, Mohammed!" demonstrators chanted.
The attack comes two days after four Americans including the ambassador were killed when a Libyan mob attacked the US consulate in Benghazi, and protesters in Cairo tore down the Stars and Stripes and replaced it with a black Islamic flag.
The low-budget movie "Innocence of Muslims," in which actors have strong American accents, portrays Muslims as immoral and gratuitously violent.
It pokes fun at the Prophet Mohammed and touches on themes of paedophilia and homosexuality, while showing him sleeping with women, talking about killing children and referring to a donkey as "the first Muslim animal."