ZURICH—Police said on Tuesday that the suspect in a shooting that occurred one day earlier at an Islamic center in Zurich has killed himself, and his motives for the attack aren’t clear.

Zurich police said that on Monday evening an unidentified, 24-year-old Swiss man entered the Islamic center not far from the city’s main train station, and fired several shots at a group of people gathered there for prayers.

The attack injured three men who the police said are now in a stable condition at a local hospital.

The attack doesn’t appear to have been “an Islamist-motivated attack,” and there is no apparent link to Islamic State, police said. They said there is no connection between the shooting in Zurich and an incident in Berlin also on Monday, where a truck rammed into a Christmas market, killing at least nine people.

The attacker in Zurich fled the scene after the shooting but remained at large. Police later discovered a dead man a few blocks away, who is believed to be the suspect.