Australia's federal police commissioner has confirmed that a mass shooting at Sydney’s Bondi Beach was a terrorist attack inspired by the Islamic State group.