The Polish man suspected of killing six people in a shooting attack in Krakow, described as an "act of terror" by senior officials, has died of his injuries.