KOBAR  -  Israel is to build hundreds of new homes in a settlement in the occupied West Bank where a Palestinian stabbed three Israelis, one fatally, Defence Minister Avigdor Lieberman said Friday.

“The best answer to terrorism is the expansion of settlements,” Lieberman wrote on Twitter, announcing 400 new housing units in the Adam settlement north of Jerusalem a day after the deadly stabbing.

The teenage attacker sneaked into the settlement on Thursday evening by climbing a fence, Israeli media reported. He stabbed three people seemingly at random before being shot dead, the army said, naming the dead Israeli as Yotam Ovadia, 31. Israeli media said he had two young children.

A 58-year-old victim was said to be seriously wounded but stable. The third victim was lightly injured. The attacker was later identified by official Palestinian media as Mohammed Dar Youssef, 17, from the village of Kobar.

The army said Friday it had raided the village, questioned a number of his family members and suspended their work permits.

During the raid on Friday morning, clashes broke out between young Palestinians and soldiers firing tear gas.

“The rioters hurled large rocks and firebombs and rolled burning tyres at (Israeli) troops, who responded with riot dispersal means,” an army statement said.

The clashes were over by mid-morning Friday, an AFP photographer said, though the army had established a checkpoint at the edge of the village.

Official Palestinian news agency Wafa said three people were arrested. The army added it was “reinforcing the defence” of Adam and other settlements.

All Israeli settlement construction in the occupied West Bank is considered illegal by the international community. Israel rejects the widely held view that settlement expansion is one of the greatest obstacles to peace with the Palestinians. Attacks against Israelis in the West Bank are supported by many Palestinians as pushing back against settlement growth.

Israeli police closed the gates to Jerusalem’s flashpoint Al-Aqsa mosque compound Friday, an AFP photographer said, after clashes erupted with Palestinian worshippers following midday prayers.

The Waqf, the religious authority that runs the mosque, confirmed the gates were closed after unrest broke out. All entry into and out of the mosque, which is Islam’s third holiest site, was prevented, the photographer said.

Police did not confirm the closures but said the clashes were sparked after Friday midday prayers as “rioters started to throw fireworks directly at police”.

“Police entered the Temple Mount compound and began evacuating the site. During dispersal of the rioters police arrested a number of suspects,” a statement said, using the Jewish name for the site.

The latest deaths were on Friday when two Palestinians were shot in the head by soldiers in separate incidents in the southern Gaza Strip, the Gaza health ministry reported. It said that one of those killed was 12-year-old Majde al Satari, hit during border confrontations east of Rafah, correcting a previous statement which gave his age as 14.

Earlier the ministry also reported the killing of Ghazi Abu Mustafa 43, and said he was shot near the frontier fence, east of Khan Yunis.

The Israeli military did not comment directly on the deaths but said about 7,000 Palestinian “rioters” threw rocks and rolled burning tyres at soldiers, and at the fence itself, at several locations along the border.

“Troops are responding with riot dispersal means and firing in accordance with the rules of engagement,” an English-language statement said, without elaborating

Hamas has pledged revenge after Israeli air and artillery strikes on the coastal enclave killed a number of its members in recent weeks.

In a statement late Thursday, it praised the “courageous operation” in the Adam settlement without claiming responsibility for it.

“The West Bank is ready and able to avenge the blood of the martyrs,” it said.