This photo is being spread around social media by the anti-Israel crowd with different, fake backstories.
What really happened is that in January 2017 the two youths both had knives and were trying to enter the Karnei Shomron settlement. The security guard was suspicious and saw the knives, drew his gun and demanded that they drop the knives, asking "Do you want to die?" Eventually the pair did give up without being hurt at all.
Watch:
Here they are being apprehended:
(h/t Tomer Ilan)