A child hit and killed a man and his dog with a car in Texas after her father allowed her to drive his Ford Explorer, police said.

Tomas Mejia Tol, 42, was arrested Thursday by Houston police and charged with criminally negligent homicide and endangering a child. Tol had allowed his 12-year-old daughter to be behind the wheel so she could practice driving, according to reports.

The victim, Enrique Vazquez, 47, had been out walking his three dogs when he was killed, according to reports from local ABC13.

There was also a toddler in the car when Tol put his daughter behind the wheel, police said.

“You can’t allow a young child to drive in a populated place,” Sean Teare, chief of the Harris County District Attorney’s Office Vehicular Crimes Division told KHOU. “If you’re going to teach a young person how to drive, go to an empty parking lot. Go somewhere where you’re not going to have the potential for taking someone’s life.”