A man with an automatic weapon lies on a street after being shot by police. The man opened fire at the U.S. Embassy in the Bosnian capital, Sarajevo, on Friday. (Danilo Krstanovic/Reuters)

An unidentified man opened fire with an automatic rifle, injuring at least one police officer before being shot and arrested. The Associated Press reports, “Bakir Izetbegovic, the Muslim Bosniak member of the country’s three-member presidency, said in a statement that he strongly condemned ‘the terrorist attack on the embassy of the United States in Bosnia-Herzegovina.’ ”

Videos emerged on YouTube showing the police standoff with the gunman. In the first, he can be seen pacing outside the embassy.

In this second video, one of the people speaking has an American accent and comments about cars hiding behind buses, afraid to continue driving down the street and into the line of fire. The YouTube user who uploaded the video said it was recorded across the street from the embassy at the Importanne shopping center.

The video shuts down after a man’s voice asks, “Please move.” The YouTube user writes that all the people in the mall were escorted into the basement parking garage before the standoff ended. Warning: There is some inappropriate language.

The final video appears to show the moment when the police shoot and overwhelm the gunman: