Police say gunman attacked the car the officers and civilian were driving in .