BBC NEWS | Middle East | Eight killed at Jerusalem school
The gunman entered the library at the Mercaz Harav seminary on Thursday evening, where about 80 students were gathered, and fired an AK-47 rifle for several minutes, witnesses say.
One of the students, Yitzhak Dadon, reportedly shot the gunman twice before he was finally killed by an off-duty Israeli army officer, who had gone to the school after hearing gunfire.
"I shot him twice in the head," he told the Reuters news agency.
"He started to sway and then someone else with a rifle fired at him, and he died."