A Texas man convicted of stabbing and beheading three young children in a squalid, windowless apartment in 2003 was executed Thursday evening, only hours after Oklahoma carried out its own execution of another inmate.

John Allen Rubio, 46, was pronounced dead at 6:47 p.m. following a lethal injection at the state prison in Huntsville. The killings of a baby girl and two toddlers so deeply shook Brownsville, on the U.S. border with Mexico, that the apartment building where the crimes occurred was later torn down and replaced by a park and community garden.

Before the injection, a spiritual adviser prayed briefly over Rubio. He thanked friends and family for their "love and understanding" and said he was "not the same person I once was." He also thanked prison staff for helping him find God and expressed love for his common-law wife, Angela Camacho, who is serving a life sentence for her role in the slayings.

"I want to say I'm sorry to my wife's family," he said. "I can't change the past but I can tell you my life is going to be over. But that's not going to make you happy." He added: "I'm going to be with my kids in a little bit. I'm ready to go to heaven to be with my lord and savior." As the sedative pentobarbital took effect, Rubio took three breaths and began what sounded like snoring. Movement then stopped, and a physician declared him dead 21 minutes after the injection began.

Rubio and Camacho were accused of killing 3-year-old Julissa Quesada, 14-month-old John E. Rubio and 2-month-old Mary Jane Rubio in the Brownsville apartment they shared. Camacho received a life sentence after pleading guilty. An appeals court threw out Rubio's first capital murder conviction, finding that Camacho's statements had been improperly admitted as evidence. At a second trial, Rubio again pleaded not guilty by reason of insanity but was again convicted and sentenced to death. Court records show Rubio was not the biological father of the two older children but raised them as his own. At times, he claimed the children were possessed and that he was the "chosen one" meant to save the world. Defense experts diagnosed paranoid schizophrenia, a conclusion prosecution experts disputed, and testified that a childhood marked by violence at home, "toxic" parents, drug use and prostitution had damaged his development.

Earlier Thursday, Oklahoma executed James Pavatt, 73, by lethal injection for the 2001 fatal shooting of his girlfriend's estranged husband, who was killed as he arrived to pick up his two young children before Thanksgiving. Asked for last words, Pavatt shook his head no. While a chaplain read from the Bible, he appeared to mouth words that could not be heard. Pavatt was convicted of first-degree murder and conspiracy in the killing of Rob Andrew, a 39-year-old advertising executive. Pavatt attended the same church as the Andrew family and had been having an affair with Andrew's wife, Brenda Andrew, who was convicted at a separate trial and is the only woman now on Oklahoma's death row. Weeks before the shooting, Rob Andrew told police someone was trying to kill him after his car's brake lines were cut. After the killing, Brenda Andrew told police masked intruders shot her in the arm and fatally shot her husband. Pavatt and Brenda Andrew fled to Mexico with her two children and were arrested three months later while reentering the United States.

Thursday's executions were the 36th and 37th in the United States this year, putting the country on pace to exceed 40 executions for a second straight year, a rate driven largely by Florida. The death penalty has drawn fresh scrutiny since the failed execution of Christa Pike in Tennessee in September, and last week California Gov. Gavin Newsom announced he would commute hundreds of death sentences before leaving office in January, which experts say would be the largest mass clemency in American history.

Also on Thursday, former Oklahoma death row inmate Richard Glossip pleaded guilty to a reduced charge of being an accessory in a 1997 murder and is awaiting sentencing in December. Glossip, who came to the brink of execution three times, was released on bond in May after nearly 30 years in prison and had been awaiting a retrial after the U.S. Supreme Court overturned his conviction.