A gunman killed three black people in a racially motivated attack and then killed himself in Jacksonville, Florida, the city's sheriff said.
The man, described as white and in his early 20s, entered a Dollar General store and opened fire, triggering a standoff with police.
Sheriff T K Waters said two men and a woman were killed by the gunman, who wore body armour and left manifestos.
Mayor Donna Deegan said it was a "hate-filled crime" driven by racist hatred.
The sheriff said the shooter - who has not yet been officially named - carried a lightweight semi-automatic rifle and a handgun.
He is believed to have acted alone and allegedly wanted to kill himself. He lived in Jacksonville's Clay County with his parents and left several messages about his intentions, Sheriff Waters said, including one to his parents and another to the media. The sheriff added that at least one of the guns had a swastika drawn on it.
The FBI has opened a civil rights investigation into the shooting, which it is treating as a hate crime.
The attack happened less than a mile from the historically black Edwards Waters University.
Jacksonville Mayor Donna Deegan told local TV channel WJXT: "One shooting is too much but these mass shootings are really hard to take."

Florida Governor Ron DeSantis called the gunman a "scumbag" and described the shooting as "horrific".
"He [the gunman] was targeting people based on their race, that is totally unacceptable," said Mr DeSantis, who is competing to be the Republican party's presidential candidate.
"This guy killed himself rather than face the music and accept responsibility for his actions and so he took the coward's way out."
The White House said President Joe Biden had been briefed on the shooting.
In a statement provided to the BBC's US partner, CBS News, Dollar General said it was "heartbroken by the senseless act of violence that occurred at our Kings Road store", adding that "supporting our Jacksonville employees and the DG family impacted by this tragedy is a top priority as we work closely with law enforcement".
There have been over 28,000 gun deaths in the US so far this year, according to the Gun Violence Archive website.
The Jacksonville attack comes on the 60th anniversary of the March on Washington and Martin Luther King Jr's famous "I have a dream" speech. Tens of thousands of people gathered in the capital on Saturday to mark the historic milestone in the civil rights movement.
Latest Stories
-
Barca fight back from two goals down to beat Atletico 4-2
3 hours -
‘I was duped into leaving London for school in Ghana – but it saved me’
3 hours -
Pope seen for the first time since going to hospital
3 hours -
Supermarket delivery driver saves customer’s life
3 hours -
Clothes brand gets 100 complaints a day that models are ‘too fat’
3 hours -
Hojlund ends 21-game goal drought in Man Utd win at Leicester
3 hours -
GPL 2024/25: Aduana stun GoldStars, Heart of Lions climb up to second
3 hours -
Sean ‘Diddy’ Combs pleads not guilty to updated indictment
3 hours -
I support calls for state of declaration on water bodies – EPA Boss
4 hours -
I have to earn right to sing national anthem – Tuchel
4 hours -
Guardiola hits back at Capello’s ‘arrogant’ jibe
4 hours -
We need to unleash full military force against Illegal mining – Dr Ashigbey
4 hours -
I support GoldBod, it will not become a failure like COCOBOD – Seny Hosi
4 hours -
GhIE inducts 148 professional engineers
4 hours -
EPA’s capacity alone can’t match galamsey fight – Prof Browne Klutse urges collaboration
4 hours