Following the deadliest mass shooting in Texas history, Danielle Shields was identified as the wife of alleged gunman Devin Kelley. She was Kelly's second wife, after he divorced his first wife, Tessa, in 2012 in New Mexico and married again in Texas in 2014, NBC News reported.

Danielle is the daughter of Michelle and Ben Shields, and all three of them reportedly had ties with the Texas church where Kelley went on a shooting rampage. Kelley, 26, was identified by officials as the man responsible for Sunday’s mass shooting at a community church in Sutherland Springs, Texas.

Armed with a Ruger AR-556 assault rifle and dressed in black tactical gear, Kelley opened fire during the church’s morning worship, killing at least 26 people and injuring 20 more. Among the dead was Lula White, Danielle's grandmother.

Authorities said during a press conference Monday that Kelley was involved in some kind of domestic dispute with his relatives.

“This was not racially motivated,” said Texas Department of Public Safety regional director Freeman Martin. “There was a domestic situation going on within the family and the in-laws.”

Kelley’s in-laws had attended the First Baptist Church in the past, though they were not there on the day of the shooting, officials said.

“The mother-in-law attended the church,” Freeman confirmed. “We know he sent threatening … that she had received threatening text messages from him.”

Kelley, a former United States Air Force airman, was reportedly court-martialed in 2012 for assaulting his then-wife Tessa and their child. He was sentenced to 12 months confinement and received a “bad conduct” discharge in 2014, Reuters reported, citing chief of Air Force media operations Ann Stefanek.

“She’s very upset,” Tessa's mother told NBC, noting that his former wife did not want to speak publicly about the situation until law enforcement had interviewed her.

He was very sick in the head,” Kelley’s former girlfriend Katy Landry told NBC News.

Landry also said he stalked her after they broke up, “repeatedly calling” and “even prank calling” her, “saying really weird stuff.” Kelley’s uncle weighed in on Facebook after the shooting, stating that he “never in a million years could of believed Devin could be capable of this kind of thing.”

“I am numb,” Dave Ivey wrote. “My family will suffer because of his coward actions. I am so sorry for the victims in Texas.”

Texas Church Shooting Law enforcement officials gather near the First Baptist Church following a shooting, Nov. 5, 2017, in Sutherland Springs, Texas. Photo: Getty Images