Two dead and gunman in hospital after US school shooting