Israel's army says troops have killed a Palestinian suspected of carrying out a weekend stabbing and shooting attack that left two Israelis dead near a West Bank settlement.

The army said late Tuesday that 19-year-old suspect Omar Abu Leila was fatally shot when he opened fire on soldiers trying arrest him. It said that Israeli troops had surrounded a building near the West Bank city of Ramallah and that Abu Leila was killed in an exchange of gunfire. There were no Israeli injuries.

Israeli Prime Minister Benjamin Netanyahu praised his forces, saying that "the long arm of Israel will reach anyone who harms our citizens and soldiers."

Women mourn during the funeral of Ahiad Ettinger at the West Bank settlement in Eli, Monday, March 18, 2019. Beilinson Hospital said Ahiad Ettinger, a 47-year-old father of 12, died of his wounds from the shooting and stabbing attack near the settlement of Ariel on Sunday. The attack also killed 19-year-old soldier Gal Keidan and seriously wounded another soldier. (AP PhotoAriel Schalit)

Women mourn during the funeral of Ahiad Ettinger at the West Bank settlement in Eli, Monday, March 18, 2019. Beilinson Hospital said Ahiad Ettinger, a 47-year-old father of 12, died of his wounds from the shooting and stabbing attack near the settlement of Ariel on Sunday. The attack also killed 19-year-old soldier Gal Keidan and seriously wounded another soldier. (AP PhotoAriel Schalit)

Sunday's attack set off a two-day manhunt that raised tensions in Israel and the West Bank after a period of fragile calm.

Israeli Prime Minister Benjamin Netanhayu, right, speaks at the scene of a Sunday gun and knife attack, near the West Bank Israeli settlement of Ariel, Monday, March 18, 2019. Israel's military expanded its massive manhunt for a Palestinian assailant on Monday as authorities announced that a second Israeli died of wounds sustained in the West Bank attack. (Jack GuezPool via AP)

Israeli Prime Minister Benjamin Netanhayu, right, speaks at the scene of a Sunday gun and knife attack, near the West Bank Israeli settlement of Ariel, Monday, March 18, 2019. Israel's military expanded its massive manhunt for a Palestinian assailant on Monday as authorities announced that a second Israeli died of wounds sustained in the West Bank attack. (Jack GuezPool via AP)