CHICAGO (CBS)—Two car crashes in the suburbs led to a car chase in Naperville Wednesday night.

The chase began earlier in the evening in Bolingbrook, when a police officer who had responded to the scene of a deadly motorcycle crash was struck by a black Hyundai.

The driver continued on after striking the police officer, and a chase with officers ensued.

The chase ended at Naper Boulevard and Washington Street in Naperville, after Bolingbrook police fired shots at a black Hyundai that was fleeing police.

The officer who was struck and the driver of the Hyundai were taken to the hospital to be treated for injuries. Both have since been released from the hospital, and the driver is in custody.

The Will/Grundy Major Crimes Task Force and Will County State’s Attorney’s office were investigating.