A 24-year-old man who killed six people and wounded 15 in a shooting in Krakow, has died in hospital.