The attacker, who has been identified by the Swedish press as 21-year old Anton Lundin Pettersson, was shot by police at Kronan school in the small town of Trollhattan and later died in hospital.