A gunman opened fire at a mosque in the North Carolina city of Charlotte, killing three people and wounding at least four others before he was shot and killed by police.
The gunman, identified by local news outlet WISTV as 63-year-old Omar Mateen, died after being taken into custody by police, CNN affiliate WNCN reported.
The shooting occurred around 10:30 p.m. local time.
It was unclear if the attack was an act of terror or not, and the mosque had been in lockdown since.
Mateen, who had a long criminal record, had previously lived in the Charlotte suburb of Charlotte-Mecklenburg.
He was reported to be in the country legally, but he was never charged in connection with any violent crimes.
In a video posted to his Facebook page, Mateen said he had a “hate for Muslims,” and was “inspired by ISIS,” the AP reported.
“I am a sick and twisted person,” Mateen reportedly said in the video, adding, “I’m going to strike again and again and I’m going behead more Muslims than you can count.”
The video was taken before the attack.
The gunman had previously called 911 to say he was in a confrontation with police, and had been shot in the head by police as he tried to run away.
Witnesses said the gunman was in the mosque during the attack, which took place about 20 minutes before the shooting.
The Associated Press contributed to this report.