A 24-year-old man suspected of killing six people in Poland's Krakow has died in hospital, police have confirmed.

The suspect, identified by local media as Michal Oksinski, was injured during a gunfight with armed police officers after opening fire in the city's busy Main Market Square on Saturday.

The shooting began shortly before 15:00 local time (14:00 GMT). Police officers arrived at the scene and exchanged gunfire with the suspect, shooting him within three minutes of the attack starting.

Authorities said the rapid response helped prevent further casualties.

Six people, comprising four women and two men, were confirmed dead in the attack. The suspect was also reportedly linked to the killing of his parents and sister at their family home.

Initial statements from officials suggested the attacker may have been motivated by far-right ideologies. A minister also described him as an ultra-nationalist.

However, Przemysław Nowak, spokesperson for Poland's National Prosecutor's Office, said on Monday that investigators were still examining the motive behind the shootings.

The incident has sparked concern over the circumstances surrounding the attack, as investigators work to establish what led to the killings.