BERLIN — Several people were injured, including a police officer, in a shooting early Tuesday at a Munich subway station, police said.

Munich police said in a tweet that the policewoman’s injuries were serious. The suspect was also injured and is in custody.

Officials ruled out a 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.

The shooting occurred during a morning police check at the Unterfoehring subway station, another police spokesman, Michael Riehlein, said.

He had no further details, but Munich’s Merkur newspaper reported that witnesses said the suspect took a police officer’s pistol and shot her, and also injured others at the scene.

Riehlein said the area was secured and that there was no danger to the wider public.