By Lucia Binding, news reporter
At least 20 people have been killed and 26 injured in a shooting at a Walmart and nearby shopping centre in El Paso, Texas.
A gunman went on the rampage at the supermarket, which was packed with up to 3,000 people, including many buying back-to-school supplies, on Saturday. Shoppers at the Cielo Vista Mall were also caught up in the violence.
Sergeant Robert Gomez said a man in his 20s had been detained near the mall and police did not fire a shot. He said the gunman used a rifle in the attack.
Two law enforcement officials identified the suspect as 21-year-old Patrick Crusius from the Dallas area, according to US media. It is alleged he had previously written an anti-immigration manifesto.
El Paso police chief Greg Allen said authorities were examining the manifesto which indicated "there is a potential nexus to a hate crime".
Texas governor Greg Abbott confirmed 20 people had died in the attack, saying it was "one of the deadliest days" in the state's history. It is the eighth worst mass shooting in modern US history.
"The scene was a horrific one," said Mr Allen, adding that many of the wounded had life-threatening injuries.
More from Texas
Officers said most of the victims had been shot at Walmart, adding that the mall had also been "secured".
Mr Abbott said of the massacre: "This is disgusting, intolerable, it's not Texan, and we are going to aggressively prosecute it both as capital of murder but also as a hate crime – which is exactly what it appears to be without having seen all the evidence yet."
During the attack, shoppers fled for their lives, including Kianna Long, who was at the Walmart with her husband when they heard gunfire.
"People were panicking and running, saying that there was a shooter," she said. "They were running close to the floor, people were dropping on the floor."
The couple ran through a stock room at the back of the store before sheltering with other customers in a steel container.
Mexico's president Andres Manuel Lopez Obrador said three of those who died were from his country.
Doctors said 23 people had been taken to hospitals.
The University Medical Centre of El Paso treated 12 patients, including two who were transferred to the El Paso Children's Hospital. Elsewhere, the Del Sol Medical Centre was treating 11 people.
One of the patients at the University Medical Centre of El Paso later died.
Multiple security forces were deployed to the scene of the attack, including police and state troopers as well as Homeland Security and border agents.
Police had urged people to stay away from the complex after receiving reports of multiple attackers at the mall.
But Sergeant Gomez said authorities had ruled out more gunmen being involved.
US President Donald Trump tweeted about the "terrible shootings" and pledged the support of the federal government to the state&#Read More – Source[contf] [contfnew]