The Israeli military says forces have demolished the homes of two Palestinians behind a deadly attack in Tel Aviv in June.

The military says the West Bank homes of Mohammed Mahamra and Khaled Mahamra were demolished early Thursday.

In the Tel Aviv attack, the cousins, both dressed in black suits, opened fire at a restaurant in a popular shopping and dining district. Four people were killed and several were wounded in one of the deadliest attacks in a 10-month wave of Israeli-Palestinian violence. The attackers were apprehended near the scene.

Israel says house demolitions are an effective deterrent against attacks. Critics counter that the tactic amounts to collective punishment.