The Israeli military says a Palestinian tried to attack soldiers with a knife in the West Bank before being shot and killed by Israeli forces at the scene.

The military says the Palestinian, brandishing a knife, charged the soldiers on Friday near Jerusalem at the Gush Etzion junction. The location has been the scene of many Palestinian attacks recently.

The incident comes amid six months of near-daily Palestinian attacks on Israeli civilians and security forces. Earlier in the day, the military said troops arrested two Palestinians with knives who said they were planning an attack.

Since mid-September, Palestinians have killed 28 Israelis and two Americans in stabbings, shootings and attacks using cars. At least 185 Palestinians have died by Israeli fire over the same period. Israel says most were assailants.