The government will work with states and territories to strengthen gun laws following the Bondi attack.