A 9-year-old boy is in critical condition after being struck by a driver in Flatbush early Friday morning.

A police spokesperson said the unnamed boy was struck by the 32-year-old driver of a 2012 Infiniti around 12:45 a.m. near the intersection of East 23rd Street and Avenue D.

The boy was dragged by the car and pinned underneath, according to the NYPD. First responders extricated him and rushed him to Maimonides Medical Center in critical but stable condition. The spokesperson said the boy had head trauma, but could not provide further information about the nature of his injuries.

Police say that according to a preliminary investigation, the driver was headed west on Avenue D when the boy ran out into the street. But preliminary investigation results released by the NYPD press office often change.

The spokesperson said the driver, whose name has not been released, was taken into custody and charges are pending. ABC7 reports that the boy "was throwing out the trash when he ran into the street for an unknown reason." PIX-11 reports that the driver was given a breathalyzer test at the scene, but the NYPD spokesperson could not confirm that.

Friday's near-fatal incident comes near the end of a year that saw a spike in pedestrian and cyclist fatalities on NYC streets. There have been at least 119 pedestrian fatalities in 2019 so far, up from 115 in all of 2018. Twenty-nine cyclists have died, nearly triple the fatalities of last year.