A gunman who killed six people in Kraków's main square on Saturday has died in hospital, Polish police reported Monday. Police wrote on X that the perpetrator "died in hospital early this morning." Police shot and detained the attacker after the attack.

The masked 24-year-old opened fire on passersby in central Kraków, according to the report. The attack killed six people, including a British citizen, and injured 16. Twelve of the injured remain in critical condition.

Authorities identified the suspect as Michał O., from Ostrowiec Świętokrzyski, a town about 140 kilometers northeast of Kraków. He held a firearms permit and was not previously known to police.

Police also found the suspect's parents and sister dead at their family home on Sunday. Investigators are examining those deaths alongside the Kraków attack and have opened a terrorism probe.

Interior Minister Marcin Kierwiński first said that "everything indicated that he was fascinated by extreme right-wing ideologies." He later said the shooter's motives remained unclear.

Prime Minister Donald Tusk wrote on X on Saturday that he offered condolences to the victims' families and praised the police officers who risked their lives. He also urged politicians "not to exploit this tragedy" and said authorities "will establish all the circumstances of this crime."