One of the police officers wounded by gunfire during the mass shooting at Bondi Beach has been discharged from hospital.