A military or police officer stands by as people pass in a public square .