The officers were out of their car, investigating an accident in the 3200 block of West Barry Avenue around 11:45 p.m., when someone fired shots near a small tan car not far away, police said. One of the shots hit the marked squad car.