A 9-year-old boy was struck by a stray bullet in Brooklyn on Thursday, cops said.

The boy was hit in his right leg on Bristol St. near Livonia Ave. in Brownsville shortly before 6 p.m., according to police.

Medics rushed the child to a nearby hospital in stable condition.

A group of teens was spotted fleeing the scene on foot, but the NYPD could not immediately provide a description of the suspect.