Gunman killed after taking hostages at Temple hospital