Oscar Bermejo-Zaragoza, 19, was arrested in connection with the drive-by shooting of a boy in Kearns, Utah

Utah police have arrested a 19-year-old man in connection with the drive-by shooting of a nine-year-old boy, which left the youth in critical condition.

A tweet Thursday from the Unified Police official Twitter account announced the arrest of Oscar Bermejo-Zaragoza.

Four people were detained for questioning, said Detective Ken Hansen with the Unified Police Department, according to Fox 13.

Salt Lake County jail records show Bermejo-Zaragoza was being held Thursday afternoon on suspicion of aggravated assault and discharging a firearm toward a vehicle.

Police say on Wednesday, the nine-year-old boy was sitting with several other children in the backseat of a parked SUV in the town of Kearns, about 15 miles from Salt Lake City, near where he lived, when one shot was fired from a passing black BMW sedan occupied by two men.

Police confer after the tragic drive-by shooting of a nine-year-old boy in Kearns, Utah

Authorities scour the scene on Stockton and Westslope in Kearns

The bullet went through the SUV's windshield and hit the boy in the head.

Fox 13 reported that the other suspect in the car was still being sought.

The boy underwent emergency surgery Wednesday night and remained in critical condition Thursday, police said. Unified Police Detective Ken Hansen said Thursday that doctors may not know until the weekend whether the boy will recover.

No other children were injured.

Police point towards evidence in the snow after the drive-by shooting of a boy shot in the head

Police believe the shooting was gang-related and the someone else was the target

Hansen said police believe the shooting was gang-related and someone else was the target.

'Based on the address, based on the type of crime that it was - you know, being a drive by shooting - it has all the ear markings of being gang related,' he said.

The car that the two men were seen in was later found in Salt Lake City.

Court records show Bermejo-Zaragoza faces aggravated burglary, robbery and assault charges from a September home invasion in Ogden.

Bermejo-Zaragoza has not yet entered a plea in that case. He was not in custody for that case because he had posted a $50,000 bond.

Bermejo-Zaragoza was scheduled to appear at a hearing regarding the September charges Thursday morning, but it wasn't clear if he made the appearance before his arrest Thursday.