A gunman fired on the officers and a passerby near a school in Liege, about 60 miles east of Brussels, authorities said.