A Palestinian man who allegedly was part of a terror cell planning attack on Israeli targets was killed in a gunfight with Israeli troops in the West Bank.

Basel al-A’araj was killed overnight Monday during an IDF arrest raid in Ramallah in the northern West Bank.

Al-A’araj, 31, was shot and killed by Israeli troops after they surrounded the house where he was holed up in order to arrest him. He opened fire on the troops, according to the IDF.

Al-A’araj was alleged to be part of a terrorist cell planning to carry out attacks on Israeli targets and allegedly was responsible for procuring weapons. An M-16 rifle and an improvised Carlo-style submachine gun were found inside the home, the IDF said.

Al-Araj was detained without charges or explanation by Palestinian security forces in April last year, the Palestinian Maan news agency reported. He was released in September after mounting a hunger strike in prison amid reports of torture and mistreatment.

On Sunday, two Palestinian men from Nablus were arrested at the Tapuah Junction in the northern West Bank on suspicion that they were planning to carry out a stabbing attack there. One of the men was carrying a large knife.