Australian Police say the attacker, who died in hospital after being shot, was known to them and they are treating the case as terrorism.