Jerusalem - Israel’s prime minister has ordered a number of security measures in the West Bank in response to a Palestinian shooting attack that killed two Israeli soldiers.

Benjamin Netanyahu’s office says he has ordered the expedited demolition of attackers’ homes within 48 hours, increased detentions of Hamas militants in the West Bank and a beefing up of Israeli forces in the region.

He also ordered additional security on roadways and increased checkpoints.

In an announcement Thursday, Netanyahu’s office says he also decided to legalize thousands of existing settlement homes in the West Bank that he says were built in “good faith” but whose status is unclear.

Speaking at a military ceremony, Benjamin Netanyahu said Israel suffered a “tough blow” with Thursday’s West Bank shooting.

“We will settle the score with whoever did this,” he said. “Our guiding principle is that whoever harms us or tries to harm us will be held responsible.”