If he was a spy and he was working for a foreign agency, then after he was caught he would have had only so many options and death is one of them. Spycraft is a hard life. The real question is why the govt of australia was looking into him in the first place and why israel agreed to detain him. The press usually doesnt report on spies because all there jobs are done behind the scenes.
Police on scene of shooting at Savannah State University campus in Georgia (Reuters)