Preventing another tragedy like Bondi will involve improving the painstaking work of anti-extremism and counterterrorism.