PFLUGERVILLE, Texas (KXAN) — Two men were arrested in connection with the shooting death of a 38-year-old man that happened over the weekend, according to the Pflugerville Police Department.

Police said Thomas Jackert, 41, is charged with deadly conduct, a third-degree felony, after they say he “recklessly fired” a gun during a fight, hitting and killing John Pearson.

Police said over the weekend that Pearson was found shot in a vehicle. He was pronounced dead at the scene. Police said the shooting happened outside of Jackert’s home at the corner of Walnut and Third streets Saturday morning.

Joshua Dry, 36, is also charged with aggravated assault with a deadly weapon after police said he held Jackert and his dog at gunpoint. Police also previously reported a dog was found dead at the scene.

The fight was originally between Dry and Jackert, according to an arrest affidavit. The court document states Dry was trying to get back his stolen property, including some ID’s and a passport, from Jackert. Jackert told police Dry and Pearson snuck up on him at his home, threatened him and pointed guns at him. Dry was on foot, while Pearson was in a truck. That’s when Jackert started shooting.

The court documents state Dry threatened to shoot and kill Jackert’s dog if he did not get his stuff back. Both Dry and Jackert exchanged shots, according to the affidavit, and the shooting match extended off Jackert’s property and into nearby roads.

The affidavit said Dry did take a shot to the left shoulder.

“The quick resolution of this case is due to the diligence and teamwork of the officers in our Patrol and Criminal Investigation divisions who responded swiftly, secured the scene and conducted excellent police work” Pflugerville Police Chief Jason O’Malley said in a press release. “I send my condolences to Mr. Pearson’s family and want to reassure the community that we have an outstanding team of officers dedicated to solving crimes and keeping Pflugerville safe.”

Police said everyone involved in the shooting knew each other.