Texas church gunman Devin Kelley was armed with three guns and had argued with his mother-in-law before the rampage, officials say.
The attack on the small church outside San Antonio during Sunday services left 26 people dead and 20 injured.
Kelley called his father after he was shot by an armed bystander and said he did not think he would survive.
He was not legally permitted to own the weapons, which included a semi-automatic rifle and two handguns.
Freeman Martin, the regional director for the Texas Department of Public Safety, told reporters it appeared that Kelley died from a self-inflicted gunshot wound after first being shot by a “good Samaritan”.
“This was not racially motivated, it wasn’t over religious beliefs,” Mr Martin said.
READ: Lagos generates more revenue than 31 States put together – Osinbajo
“There was a domestic situation going on with the family and in-laws,” he said, adding that, Kelley had sent threatening texts to his mother-in-law.
“We know that he expressed anger towards his mother-in-law, who attends this church,” Mr Martin said.
Wilson County Sheriff Joe Tackitt said that the family members had not been present at the time of attack.
Kelley fled the scene after exchanging gunfire with a local resident who heard gunshots from coming from across the road, Mr Martin said on Monday.
Johnnie Langendorff told local media that he picked up the Texas man, identified by US media as Stephen Willeford, and the pair pursued Kelley in a car chase.
He said they drove at speeds of up to 95mph (153km/h) until the gunman lost control of his car and crashed.
Kelley was later found dead inside his vehicle with what appeared to be a self-inflicted gunshot wound, police said.
Who were the victims?
Officials have not yet identified the victims who were killed at the First Baptist Church in Sutherland Springs, a small town in Wilson County, which lies about 30 miles (50km) south-east of the city of San Antonio.
Of the 20 wounded, 10 are in hospital in a critical condition, four are in a serious condition and six are stable, officials say.
About half the victims were children, including one who was just 18 months old, according to Sheriff Tackitt.
The First Baptist Church’s pastor, Frank Pomeroy, told US media his 14-year-old daughter, Annabelle, was among those killed.
Officials said 23 people were found dead inside the church while two people were fatally shot outside.
Another died in hospital, authorities said.
As many as eight members of the Holcombe family were killed in the shooting, the Washington Post reported.
The BBC spoke to the Holcombes’ neighbour Pauline Garza, who said the family did not come back from church.