A pair of twins driving separate cars rear-ended a police vehicle after a fatal wreck in Texas, injuring two deputies who were investigating an earlier crash, authorities said.

Deputies in Harris County responded to the scene of a major traffic accident late Sunday on East Sam Houston Parkway and found a 19-year-old woman pinned inside a rear passenger seat. The unidentified woman was later pronounced dead, while a 21-year-old male driver and an infant were taken to a hospital in Pasadena for observation.

Investigators believe the small Chevrolet was stopped in a moving lane of traffic when it was struck by a commercial vehicle, according to the Harris County Precinct 8 Constable’s Office.

As that crash was being investigated, Deputies Matthew Self and Troy Brinkley were directing traffic at the scene when a second crash took place, involving two vehicles — a Ford F-150 and a Hyundai passenger car — driven by twin brothers. They were identified as James and Joseph Bramlet, 37.

“Deputy Self ran and dove out of the way of the oncoming vehicles when he realized they were not stopping, suffering [an] injury to his left ankle in the process,” department officials announced on Facebook. “The F-150 then tried to stop suddenly when it was rear-ended by the Hyundai.”

The force of the second crash sent the F-150 into a marked K-9 patrol vehicle driven by Brinkley, leaving him with injuries to his head, neck and back. Brinkley’s police dog, Evo, who was also inside the vehicle, was not hurt, authorities said.

Brinkley and Self were taken to a hospital before being released. They were resting at home after the crash and are expected to recover, department officials said.

Evidence at the second crash site revealed that both Joseph and James Bramlet were intoxicated. Joseph Bramlet was arrested on charges of felony DWI with a child passenger, while James was charged with DWI and unlawful carry of a weapon.

“Our thoughts and prayers are with all those [affected] by these events, especially the family of the young woman who died,” the department announced on Facebook. “The investigation into both of these cases is ongoing.”