The Israeli military said early Tuesday morning that a Palestinian man had been shot, later dying of his wounds, while trying to stab IDF soldiers who were conducting an arrest raid in the West Bank overnight.

Troops from the elite Duvdevan unit were on an operation in the Palestinian village of Far’a, northeast of Nablus, to arrest wanted suspects, the military said.

The Palestinian, identified in the Palestinian media as 32-year-old Muhammad a-Salahi, rushed the soldiers with a knife in hand and did not heed calls to stop, according to the IDF.

The troops “began an arrest process, and when the suspect kept advancing toward them, he was shot and was later pronounced dead,” the IDF said in a statement Tuesday.

A-Salahi had served time in Israeli jail, according to Israeli news site Walla.

According to the military, explosives devices were thrown at the troops and they were shot at during the raid. There were no injuries to the soldiers.

Four Palestinian suspects were arrested in the operation and transferred to the Shin Bet for questioning. In all, nine Palestinians were arrested by Israeli security forces throughout the West Bank overnight.

The operation came a day after four soldiers killed in a truck-ramming attack in Jerusalem on Sunday were buried in funerals across the country. Seventeen more people were injured in the terror attack at the Armon Hanatziv neighborhood in the capital, some of whom are still fighting for their lives.

The terrorist, a 28-year-old from East Jerusalem’s Jabel Mukaber, was shot and killed by soldiers at the scene.

A previously unknown Palestinian group named after a terrorist who, along with an accomplice, killed three Israelis on a bus in Armon Hanatziv in 2015, claimed responsibility for the attack though it is difficult to verify the validity of the claim.