A Palestinian rammed his truck into a crowd of Israeli soldiers in Jerusalem on Sunday, killing four of them and injuring more than a dozen more.
The attack was the deadliest in the city in recent months and marks first Israeli casualties in three months.
The Israeli military said that the dead included a female officer and three officer cadets. 17 others were injured in the incident.
The attacker was identified as Fadi Ahmad Hamdan Qunbur, 28, a Palestinian who was shot dead.
He targeted the cadets as they disembarked from a bus.
Israeli Prime Minister Benjamin Netanyahu said that the attacker was Islamic State supporter.
“We know the identity of the attacker. According to all the signs he is a supporter of Islamic State,” he said.
IS has not commented on the incident so far.
The attack comes amid a wave of Palestinian shooting, stabbings that have slowed as of late.
At least 231 Palestinians and 37 Israelis have been killed since October 2015.
Hamas, the Palestinian Islamist group that controls the Gaza Strip, praised the attack.
“We bless this heroic operation resisting the Israeli occupation to force it to stop its crimes and violations against our people,” Fawzi Barhoum, a spokesman for Hamas, told Reuters.