DALLAS (AP) — A man who killed his wife and then wounded two Dallas officers during a standoff before killing himself was convicted twice of sexually assaulting people, authorities said Friday.

Sergio Sanchez, 57, had “an extensive violent criminal history” and didn’t want to return to prison after he shot and killed his 31-year-old wife, April Lachelle Sanchez, on Thursday, police Chief Eddie García said during a news conference.

Sanchez served 12 years of a 25-year prison sentence for the 1983 aggravated sexual assault, aggravated kidnapping and robbery of a 32-year-old woman. He was released early in July 1996 under a policy that required inmates to be released once their time served and time earned for good behavior equaled the duration of their sentence, The Dallas Morning News reported.

Three months after his release, Sanchez abducted and raped a 15-year-old girl who was walking to school, Garcia said. After Sanchez pleaded guilty to sexually assaulting a child in 1998 and was sentenced to five years in prison, the police chief at the time, Ben Click, said the case highlighted the need for harsher punishments for certain crimes.

Sanchez called 911 operators Thursday to report that he had killed his wife after an argument, authorities said. Another person called to say Sanchez planned to shoot at responding officers.

“All signs prove that it looks like it was an ambush,” García said.

Two officers were shot in the lower leg and were in stable condition at Baylor University Medical Center, Garcia said. Sanchez killed himself and police didn’t fire any shots during the standoff with him, the chief said.