Police said Jihad al-Shamie called emergency services to declare allegiance to armed group as he carried out the attack.