Two Palestinians were arrested on Sunday after trying to enter the West Bank settlement of Karnei Shomron armed with knives, police said.
A security coordinator for the settlement, west of Nablus, shot in the air as the two approached with their knives drawn, according to police.
Both were then subdued and disarmed, according to reports.
The two, a young man and young woman, were handed over to security forces for questioning.
No injuries were reported in the incident.
West Bank settlements have been the site of several deadly stabbing and shooting attacks by Palestinians during the recent wave of terrorism and violence.
While the violence has dramatically waned in recent months, sporadic attacks have persisted.
Last week, Palestinian gunmen opened fire on Israelis in the northern West Bank on four separate occasions.
The IDF said that on Friday, two Palestinians shot at an Israeli vehicle as it drove by the Ramallah-area settlement of Nilli.
On Wednesday, the army reported two shooting attacks on Israelis, one adjacent to Ramallah and the other just north of Qalqilya.
There were no injuries in any of those attacks.
Also last Wednesday, Israeli troops shot dead a Palestinian man who rammed his car into a West Bank bus stop north of Jerusalem.
Israeli civilians and soldiers who were standing at the bus stop were uninjured.
The army said the driver was found to be holding a knife in his hand.