JERUSALEM — Israel deployed several hundred soldiers around the West Bank city of Hebron on Friday after two Israelis were killed in separate attacks in the past 48 hours.

The army began implementing wide-ranging closures around the city, including setting up checkpoints and restricting general movement.

Lt. Col. Peter Lerner, a military spokesman, said the steps were the most “substantial” the Israeli army has taken on the ground since 2014, when three Israeli teenagers were kidnapped and killed by two Palestinian militants.

On Friday, Palestinian gunmen opened fire on an Israeli family traveling on a main highway near the Israeli settlement of Otniel. The car crashed, killing a man and seriously injuring a woman.

On Thursday, a Palestinian youth fatally stabbed an Israeli teenager as she slept in her bed. The attacker, from the village of Bani Naim, infiltrated the Israeli settlement of Arba near Hebron, authorities said. He was fatally shot. The victim, 13-year-old Hallel Yaffe Ariel, was a dual U.S.-Israeli citizen.