Several people were wounded when shots were fired at a commuter rail station near the southern German city of Munich on Tuesday and one person was detained, police said.
"Several people were injured by shots. A female police officer was badly wounded," Munich police tweeted.
Authorities reported that a handgun was fired during a police operation at an S-Bahn station in Unterfoehring, a northeastern suburb of the Bavarian city, and that the scene was now secured.
Police ruled out any political or religious motive, saying the attacker acted out of "personal" reasons.
"The sole male perpetrator was motivated by personal reasons. There is no political or religious background here," police spokesman Marcus da Gloria Martins told reporters.