They should have shot him as a spy.
Good for Israel! Why on earth should Israel allow an enemy behind the gates?