You may be right but it is far from certain. Another option is that the killer is a fanatic Islamist "revenging" for the killings in Afghanistan. I know it is absurd, but the man is probably mad, and there are strong similarities with the shooting in Toulouse today.
Five arrested in anti-terror raids in Sydney (DPA)
from the article: Four killed in shooting at Jewish school in France