One of the two alleged gunmen died during the deadly attack at Bondi Beach, while another was taken to hospital.