Australia’s federal police commissioner Krissy Barrett said on Tuesday that the mass shooting was "a terrorist attack inspired by Islamic State".