A Palestinian stabbed and lightly wounded a resident of the southern West Bank settlement outpost of Havat Mor inside his home on Wednesday, the army said.

The victim shot the alleged terrorist, who was pronounced dead on the scene by a local doctor, a spokesperson for the Magen David Adom ambulance service said.

The Palestinian man had broken into the West Bank outpost in the Hebron Hills, the army said.

The man was in his home when he heard a noise outside. Leaving his home to investigate, he saw a Palestinian man holding two knives, according to the Ynet news site.

The victim then ran back inside his house to get his pistol. The Palestinian followed him into the living room and stabbed the Israeli man in front of his wife and children, according to the report.

The Israeli eventually managed to take out and use his gun on the attacker.

The victim, 33, suffered stab wounds to the limbs, Magen David Adom said. He was described as lightly injured.

“When we arrived at the scene we saw the victim, fully conscious and walking around. We gave him medical treatment, including bandaging. He was in stable condition,” a medic said.

The assailant was identified by the Palestinian health ministry as Said Muhammad Ali Qisiyeh, 24, from al-Dharia, located near Hebron.

On Tuesday, police set up roadblocks and closed streets for several hours in response to suspicions of an unspecified “security incident” in the Beersheba-Rahat area, several kilometers south of the scene of Wednesday’s attack.

They lifted the precautions Tuesday night.

Israeli security officials have noted a marked drop in attacks in the last several months, following a several-month wave of violence starting in October 2015.

However, sporadic attacks have persisted.

Last month, at least five people were lightly wounded when a Palestinian man opened fire at a bus and stabbed a person near an outdoor market in the central Israeli city of Petah Tikva.

Since October 2015, 40 Israelis, two Americans, a Palestinian and an Eritrean national have been killed in stabbing, car-ramming and shooting attacks.

According to AFP figures, some 250 Palestinians, a Jordanian and a Sudanese migrant have also been killed, most of them in the course of carrying out attacks, Israel says, and many of the others in clashes with troops in the West Bank and at the Gaza border, as well as in Israeli airstrikes in the Gaza Strip.