ABC13 was there as deputies and officers surrounded an SUV with 25-year-old Alan Anthony Ruth inside. He was stopped at the restaurant off I-45 and Richey, two miles from the shooting scene.
Ruth eventually came out of the passenger side with his hands up. He backed up, got on the ground and was taken into custody.
A woman driving the SUV was let go.
Ruth has been charged in the shooting, but authorities haven't said exactly what the charge is.
Authorities say that around 10 a.m. Thursday, a white Corolla carrying two men and three children was traveling east on FM 1960 and waiting to turn on Bamwood, when Ruth pulled up in a Grand Marquis and fired several shots into the car.
The passenger of the Corolla was shot in the head. Three children were also in the car. They were not hurt.
The victim is in critical condition.
Officials told ABC13 Ruth was aiming for the Corolla's driver, Christian James Lee, not the victim. They said the motive for the shooting is an ongoing feud between Ruth and Lee.
Lee, who is the father of the three children, was not hurt.
Police say they recovered the vehicle Ruth used in the shooting in the 12300 block of Gessner.
Ruth has an extensive criminal record dating back to 2011. He's been arrested before on aggravated assault and drug charges.
On Friday, Ruth went before a judge for an aggravated assault charge stemming from a shooting involving Lee back in November, according to court paperwork.
Records show that Ruth shot Lee and another man.
RELATED: Man shot in car with children inside in northwest Harris County
Follow Courtney Fischer on Facebook and Twitter.