A 39-year-old man has been arrested following the incident, New South Wales police said in a statement.