ORLANDO, FL --The last of the bodies were removed from an Orlando gay nightclub overnight as investigators dug into the background of the gunman who killed 49 people and devastated a city world-famous for its theme parks.
"We will not be defined by the act of a cowardly hater," Mayor Buddy Dyer vowed on Monday, a day after the deadliest mass shooting in modern U.S. history.
RELATED: 50 slain in club shooting
The killer, who died in a gun battle with a SWAT team early Sunday, was identified as Omar Mateen, a 29-year-old American-born Muslim who authorities say called 911 from the club to claim allegiance to the Islamic State group.
FBI officials said they had investigated him in 2013 and 2014 on suspicion of terrorist sympathies but could not make a case against him.
Mateen opened fire at the Pulse Orlando club with an AR-15 semi-automatic rifle in such close quarters that the bullets could hardly miss. He was gunned down after police used explosives and a small armored vehicle to punch a hole in a wall and allow dozens of club-goers to escape, police said.
RELATED: Houston Mayor Sylvester Turner: 'Enough is enough'
"I've always felt so safe here for my family, kids. And now, I don't know," said Marlon Massey, who lives across the street from the club, in the city known to tourists around the globe as the home of Walt Disney World and other theme parks.
President Barack Obama called the shooting an "act of terror" and an "act of hate" against a place of "solidarity and empowerment" for gays.
Authorities have not said whether Mateen was directed by the Islamic State or simply acted in sympathy with the extremist group. His father suggested another motive: anti-gay hatred. The father said his son recently got angry when he saw two men kissing in Miami. Mateen's ex-wife said he was mentally ill - specifically, bipolar.
Mateen was the son of an Afghan immigrant and lived in Fort Pierce, Florida, where he had worked as a security guard.
The Islamic State's radio called Mateen "one of the soldiers of the caliphate in America." Al-Bayan Radio, a media outlet for the extremist group, hailed the attack, saying that it targeted a gathering of Christians and gays and that it was the worst attack on U.S. soil since 9/11.
Even if the attacker sympathized with the Islamic State, it was unclear whether the group planned or knew of the attack beforehand.
Thirty-nine of the dead were killed at the club, and the others died at hospitals, the mayor said. By Monday morning, families of 24 of the victims had been notified, Dyer said.
Workers removed the bodies four at a time on stretchers and loaded them into white vans. The action was repeated over and over. The covered bodies were taken to the county medical examiner's office. All were there by 11 p.m., Dyer said.
At least 53 people were hospitalized, most in critical condition, and a surgeon at Orlando Regional Medical Center said the death toll was likely to climb.
On Monday morning, officials emphasized that there was no immediate threat to the public.
The shooting started about 2 a.m., with more than 300 people inside the Pulse, where it was Latin night.
"He had an automatic rifle, so nobody stood a chance," said Jackie Smith, who saw two friends next to her get shot. "I just tried to get out of there."
Jon Alamo had been dancing for hours when he wandered into the club's main room just in time to see the gunman. "You ever seen how Marine guys hold big weapons, shooting from left to right? That's how he was shooting at people," he said.
"My first thought was, 'Oh, my God, I'm going to die,'" Alamo said. "I was praying to God that I would live to see another day."
Pulse patron Eddie Justice texted his mother, Mina: "Mommy I love you. In club they shooting." About 30 minutes later, hiding in a bathroom, he texted her: "He's coming. I'm gonna die."
Justice's name would eventually be added to the list of the dead.
The previous deadliest mass shooting in the U.S. was the 2007 attack at Virginia Tech, where a student killed 32 people before killing himself.
Mateen was not unknown to law enforcement: In 2013, he made inflammatory comments to co-workers and was interviewed twice, according to FBI agent Ronald Hopper, who called the interviews inconclusive. In 2014, Hopper said, officials found that Mateen had ties to an American suicide bomber, but the agent described the contact as minimal, saying it did not constitute a threat at the time.
Mateen bought at least two guns legally within the last week or so, according to Trevor Velinor of the Bureau of Alcohol, Tobacco and Firearms.
Mateen exchanged gunfire with 14 police officers at the club and took hostages at one point. In addition to the assault rifle, he also had a handgun. Police Chief John Mina said officers held back for some time because Mateen indicated he had a bomb vest.
About 5 a.m., authorities sent in a SWAT team to rescue the remaining club-goers, Mina said.
Mateen's father, Mir Seddique, told NBC News about his son seeing the men kissing a couple of months ago.
"We are saying we are apologizing for the whole incident," Seddique said. "We are in shock like the whole country."