The former wife of Devin Kelley, the man who opened fire at a Texas church last Sunday killing at least 26 people, said he had a lot of “hatred inside him” and threatened to kill her whole family.

“He just had a lot of demons or hatred inside of him,” Brennaman told “Inside Edition. “He had a gun in his holster right here and he took that gun out and he put it to my temple and he told me, ‘Do you want to die? Do you want to die?'”

PARISHIONERS: GUNMAN ACTED ODDLY WEEK BEFORE CHURCH ATTACK

In 2013, Kelley pleaded guilty to choking Brennaman, pulling her hair and kicking her. He also pleaded guilty to hitting her young son’s head and body, fracturing his skull.

The former Air Force airman was sentenced to 12 months of confinement and ultimately removed from the military with a bad-conduct discharge and a reduction of rank.

On Monday, the Air Force acknowledged it did not enter Kelley’s criminal history into the federal database used to conduct background checks on citizens looking to purchase a firearm. Authorities recovered a Ruger AR-556 rifle at the church and two handguns from Kelley’s vehicle. They said all three were purchased by Kelley.

TEXAS CHURCH GUNMAN’S PHONE RECOVERED, BUT ENCRYPTION PREVENTING ACCESS, FBI SAYS

After Kelley shot parishioners at the First Baptist Church in Sutherland Springs, he fled the scene in his truck while being chased by two good Samaritans. He was found dead in his car from what appeared to be a “self-inflicted” gunshot wound.

It was not immediately clear what the motive of the shooting was. However, investigators have said Sunday’s shooting appeared to stem from a domestic dispute involving Kelley and his mother-in-law, and that he had sent threatening messages to her. The mother-in-law sometimes attended services at the church but was not present on Sunday.

Officials said the church will be demolished and it will serve as a temporary memorial.

Eleven people remained hospitalized Friday with wounds from the shooting.

Law enforcement officials continue to investigate the scene of a shooting at the First Baptist Church of Sutherland Springs, Tuesday, Nov. 7, 2017, in Sutherland Springs, Texas. A man opened fire inside the church in the small South Texas community on Sunday, killing more than two dozen and injuring others. (AP Photo/Eric Gay)

At least 26 people were killed in the Texas church massacre.  (AP)

The Associated Press contributed to this report.