Man attacks police with iron bar when told to wear a mask