A 10-year-old boy is in critical but stable condition after he was shot in the head as he was walking home from school during a drive-by shooting in Pennsylvania on Wednesday, police said.

The gunfire came from a car just after 3:30 p.m. Wednesday about two blocks from a middle school in the Frankford neighborhood in northeast Philadelphia, police said.

The boy was hit in the back of the head while walking on Margaret Street near Torresdale Avenue, investigators said. He was rushed to a local children’s hospital in critical condition, they added.