In a matter of seconds, the men wearing scarves over their faces and throwing stones along with a group of Palestinians pulled out their pistols, opened fire and blew their cover.
"Mustarabiin!" rang out among the crowd of about 100 Palestinians who been hurling stones at Israeli soldiers for several hours at the Bet El checkpoint outside Ramallah.
It is a word used to refer to those who disguise themselves as Arabs.
The incident on Wednesday, captured on video by an AFP journalist, offered a rare glimpse of what appeared to be Israeli infiltrators embedded in a group of Palestinian stone-throwers.
The Palestinians regularly accuse Israel of placing Arabic-speaking infiltrators among demonstrators in order to make arrests.
The infiltrators on Wednesday grabbed and beat one man while pulling out their pistols, opening fire as stones flew toward them. Three people were wounded, including one left in a critical condition after being shot in the back of the head.
IDF spokesperson Lt. Col. Peter Lerner confirmed in a Facebook post that the infiltrators were members of the "Duvdevan," an IDF Special Forces unit.
The undercover Israelis had been there for at least 30 minutes, AFP journalists reported, but were impossible to recognize beforehand. As riots have spread through east Jerusalem and the West Bank, stone-throwers have almost always been masked or wearing traditional Palestinian keffiyeh scarves.
Arriving with backpacks, trainers and jerseys of Barcelona and the French national football teams, they mixed with students who had called for a "day of rage."
One undercover soldier even had a green scarf for Islamist movement Hamas trailing from the pocket of his jeans.
Responding to the call from student guilds, the protesters left from Bir Zeit University under the rallying cry: "Bir Zeit was a stronghold of the intifada (uprising).
"It must lead the movement again."
Clashes broke out immediately after they arrived at Bet El, which has become the site of daily protests amid the recent wave of unrest.
The infiltrating Israeli forces joined the front line, dozens of yards from soldiers posted there with jeeps and armored vehicles.
At first, they threw stones like the others. Protesters hid behind a rubbish bin that served as a makeshift barricade against rubber bullets fired by Israeli troops along with tear gas and stun grenades.
In an instant, the infiltrators withdrew from the crowd and pulled out pistols, as the protesters realized what was happening. The protesters threw stones at the men, four of whom pointed their weapons and opened fire.
Three others who were unarmed grabbed two wounded youths and beat them. One youth who ran was hit in the back of the head.
Israeli soldiers rushed to the scene and fired in the air. Both the infiltrators and the soldiers then grabbed three of the youths and brought them toward jeeps and armored vehicles, leaving streaks of blood on the ground.
"Be careful — they arrested them. They're mustarabiin," one protester said.
Another said "they're always in the middle of the crowd."
After being dragged toward the military post, the three wounded protesters were on the ground surrounded by soldiers before being loaded aboard army ambulances. One of the wounded remains in critical condition.
The person hit in the back of the skull tried to lift his head several times and breathed with difficulty. Another was wounded in the thigh, while a third writhed on the ground.