A gunman was killed on Tuesday after he fatally shot two police officers and a civilian and then took a hostage at a school in the Belgian city of Liège, officials said. No students were injured.