The gunman who allegedly killed at least 26 people at a Texas church Sunday lived at a Colorado Springs mobile home park as recently as 2014 and was once cited for misdemeanor cruelty to animals, according to criminal and voter records.

Law enforcement officials on Sunday evening identified Devin Patrick Kelley, 26, as the perpetrator in what was the worst mass shooting in Texas history.

Dressed in black gear and armed with an assault rifle, Kelley opened fire during a Baptist church service in Sutherland Springs, a small community outside of San Antonio. As of Sunday evening, 26 were confirmed dead and at least 20 others had been wounded.

Nick Wagner, Austin American-Statesman via AP Carrie Matula embraces a woman after a fatal shooting at the First Baptist Church in Sutherland Springs, Texas, on Sunday, Nov. 5, 2017. Matula said she heard the shooting from the gas station where she works a block away.

Nick Wagner, Austin American-Statesman via AP Law enforcement officials work the scene of a fatal shooting at the First Baptist Church in Sutherland Springs, Texas, on Sunday, Nov. 5, 2017.

Jay Janner, Austin American-Statesman via AP Investigators work at the scene of a mass shooting at the First Baptist Church in Sutherland Springs, Texas, on Sunday Nov. 5, 2017. A man opened fire inside of the church in the small South Texas community on Sunday, killing more than 20 people.



Jay Janner, Austin American-Statesman via AP Investigators work at the scene of a deadly shooting at the First Baptist Church in Sutherland Springs, Texas, Sunday Nov. 5, 2017. A man opened fire inside of the church in the small South Texas community on Sunday, killing more than 20 people.

Nick Wagner, Austin American-Statesman via AP A man wipes his eyes after a deadly shooting at the First Baptist Church in Sutherland Springs, Texas, Sunday, Nov. 5, 2017. A man opened fire inside of the church in the small South Texas community on Sunday, killing more than 20 people.

San Antonio Express-News, Zuma Press/TNS A group gathered in prayer outside the Community Center, after a mass shooting occurred at the First Baptist Church on Sunday, Nov. 5, 2017.



Jay Janner, Austin American-Statesman via AP Enrique and Gabby Garcia watch investigators at the scene of a mass shooting at the First Baptist Church in Sutherland Springs, Texas, on Sunday Nov. 5, 2017. A man opened fire inside of the church in the small South Texas community on Sunday, killing more than 20 people.

Erich Schlegel, Getty Images Law enforcement and forensic officials gather near the First Baptist Church following a shooting on Nov. 5, 2017 in Sutherland Springs, Texas. At least 20 people were reportedly killed and 24 injured when a gunman, identified as Devin P. Kelley, 26, entered the church during a service and opened fire.

Erich Schlegel, Getty Images People gather near First Baptist Church following a shooting on Nov. 5, 2017 in Sutherland Springs, Texas. At least 26 people were reportedly killed and 24 injured when a gunman, identified as Devin P. Kelley, 26, entered the church during a service and opened fire.



Jay Janner, Austin American-Statesman via AP A couple comfort each other at a community center in Sutherland Springs, Texas, near the scene of a mass shooting at the First Baptist Church on Sunday, Nov. 5, 2017. A man opened fire inside of the church in the small South Texas community on Sunday, killing more than 20 people.

Nick Wagner, Austin American-Statesman via AP A woman prays with a man after a fatal shooting at the First Baptist Church in Sutherland Springs, Texas, on Sunday, Nov. 5, 2017.

Eric Baradat, AFP/Getty Images Texas Governor Greg Abbott speaks at a press conference on Nov. 5, 2017, in Sutherland Springs, Texas about the First Baptist Church mass shooting. "There are 26 lives that have been lost. We don't know if that number will rise or not, all we know is that's too many, and this will be a long, suffering mourning for those in pain," Abbott said.



Suzanne Cordeiro, AFP/Getty Images Wilson County Sheriff Joe Tackitt (C) speaks at a press conference on Nov. 5, 2017, in Sutherland Springs, Texas about the First Baptist Church mass shooting. "There are 26 lives that have been lost. We don't know if that number will rise or not, all we know is that's too many, and this will be a long, suffering mourning for those in pain," Texas Governor Greg Abbott (L seated) said.

Darren Abate, The Associated Press Law enforcement officers man a barricade near the First Baptist Church of Sutherland Springs after a fatal shooting, Sunday, Nov. 5, 2017, in Sutherland Springs, Texas.

Suzanne Cordeiro, AFP/Getty Images Police block a road in Sutherland Springs, Texas, on Nov. 5, 2017, after a mass shooting at the the First Baptist Church. A gunman went into the church during Sunday morning services and shot dead some two dozen worshippers, the sheriff said, in the latest mass shooting to shock the US. "Approximately 25 people" were dead, including the shooter, Wilson County Sheriff Joe Tackitt told NBC News. At least 10 people were wounded. The motive was not immediately known, he added.



Nick Wagner, Austin American-Statesman via AP Law enforcement officials works at the scene of a fatal shooting at the First Baptist Church in Sutherland Springs, Texas, on Sunday, Nov. 5, 2017.

Darren Abate, The Associated Press Members of the FBI walk behind the First Baptist Church of Sutherland Springs after a fatal shooting, Sunday, Nov. 5, 2017, in Sutherland Springs, Texas.

Jay Janner, Austin American-Statesman via AP Texas Gov. Greg Abbott consoles Ann Montgomery, a Sunday school teacher at First Baptist Church in Sutherland Springs during a candlelight vigil for the victims of a fatal shooting at the First Baptist Church of Sutherland Springs, Sunday, Nov. 5, 2017, in Sutherland Springs, Texas.



Darren Abate, The Associated Press Mourners participate in a candlelight vigil held for the victims of a fatal shooting at the First Baptist Church of Sutherland Springs, Sunday, Nov. 5, 2017, in Sutherland Springs, Texas.

Darren Abate, The Associated Press Mourners participate in a candlelight vigil held for the victims of a fatal shooting at the First Baptist Church of Sutherland Springs, Sunday, Nov. 5, 2017, in Sutherland Springs, Texas.

Jay Janner, Austin American-Statesman via AP Bailey LeJeaune, 17, and David Betancourt, 18, hold candles during a vigil in Sutherland Springs for the victims of a deadly shooting at the First Baptist Church in Sutherland Springs, Texas, Sunday, Nov. 5, 2017. A man opened fire inside of the church in the small South Texas community on Sunday, killing more than 20 people.



Nick Wagner, Austin American-Statesman via AP Lisa Cavazos speaks with Texas Gov. Greg Abbott during a candlelight vigil held for the victims of a fatal shooting at the First Baptist Church of Sutherland Springs, Sunday, Nov. 5, 2017, in Sutherland Springs, Texas.

Preliminary reports on Sunday suggested Kelley had a troubled past.

An Air Force spokesman told the Associated Press that he was discharged from the military for allegedly assaulting his spouse and child. He was sentenced to 12 months’ confinement after a 2012 court-martial, and ultimately received a bad conduct discharge and was demoted in rank.

On Aug. 1, 2014, El Paso County Sheriff’s deputies cited Kelley for misdemeanor cruelty to animals.

Numerous witnesses said they saw him beat a dog with his fists.

Jennifer Jones told deputies she saw a young brown and white Husky running loose near the back of her camping space. A heavyset man later identified as Kelley – with shaggy, dirty blond hair – ran up to the dog and jumped on top of it.

“She stated the white male then began punching the dog with a closed fist near the head and neck area. She stated she witnessed four to five punches and then the male suspect grabbed the dog by the neck and drug him away,” an El Paso County deputy report says.

Charles Harolds told deputies that Kelley was yelling at the dog to come to him and when it didn’t he tackled the dog and held it down with his knees and punched the dog.

Brent Moody told deputies he saw the dog run away from Kelley. When Kelley caught up with it, he grabbed the dog and threw it to the ground.

“He could hear the suspect yelling at the dog and while he was striking it, the dog was yelping and whining. The suspect then picked up the dog by the neck into the air and threw it onto the ground and then drug him away to lot 60,” Moody told the deputy.

When El Paso County Sheriff’s Sgt. Ronald Mitchell convinced Kelley to open the door of his trailer home, he could tell the dog was undernourished. When he touched the dog he could feel the dog’s ribs.

Kelley told the sergeant that his dog ran out of his camper and began acting aggressively to another dog. Kelley said he had to jump on the dog to control the animal.

“He stated he then walked the dog back to the trailer without any other incident,” the report says.

Kelley denied hitting the dog, throwing the dog to the ground or carrying it by its neck.

Authorities took the Husky to the Veterinary Specialty Center.

El Paso County Judge Daniel Scott Wilson sentenced Kelley to a deferred probationary sentence and ordered him to pay $368 in restitution. Wilson also ordered Kelley to pay a genetic testing surcharge of $2.50 and $78 to the victim’s assistance fund, court records say.

The cruelty to animals charge was dismissed on March 31, 2016, after Kelley successfully completed his sentence, court records indicate.

Before he moved to Colorado Springs, Kelley served in Logistics Readiness at Holloman Air Force Base in New Mexico from 2010 until his discharge in 2014, the AP reported.

Sometime that year, he moved to the Fountain Creek RV Park in Colorado Springs, according to public records.

Kelley registered as an unaffiliated voter in Colorado on Nov. 13, 2014, according to state voter records. But he never voted, and his registration was changed to inactive after his 2016 mail-ballot was returned.

His next known address was New Braunfels, Texas, a suburb of San Antonio where he lived until Sunday’s shooting.

Kelley was found dead after the shooting, but it wasn’t clear if the wound was self-inflected or if he was shot by a resident who confronted him.