At least three people have died and several others were injured after a knife attack in Germany.
Armed police arrested the suspect following the stabbing spree in the southern city of Wurzburg on Friday.
Videos posted on social media showed members of the public surrounding the alleged attacker and holding him down with chairs and sticks.
A woman who said she had witnessed the incident told German RTL television that officers then stepped in.
"He had a really big knife with him and was attacking people," said Julia Runze.
"And then many people tried to throw chairs or umbrellas or cellphones at him and stop him.
"The police then approached him and I think a shot was fired, you could hear that clearly."
The suspect was reportedly shot in the leg by police.
The situation is now under control, officers said.
Police said there are "no indications of a second suspect" and stressed: "There is no danger to the population."
"The attacker was overpowered after police used a firearm," Lower Franconia Police said on Twitter.
Investigations are ongoing to establish a possible motive for the attack.
Wurzburg, which has a population of around 130,000, is located south-east of Frankfurt.