PARKLAND, Fla. (AP) -- An orphaned 19-year-old with a troubled past and his own AR-15 rifle was charged with 17 counts of premeditated murder Thursday morning following the deadliest school shooting in the U.S. in five years.
Law enforcement officials told The Associated Press that Nikolas Cruz legally purchased the assault weapon used in the attack.
As reactions poured in Thursday, President Donald Trump focused on the young man's mental health.
"So many signs that the Florida shooter was mentally disturbed, even expelled from school for bad and erratic behavior. Neighbors and classmates knew he was a big problem. Must always report such instances to authorities, again and again!" Trump tweeted.
Fourteen wounded survivors were hospitalized as bodies were recovered from inside and around Marjory Stoneman Douglas High School.
Cruz, still wearing a hospital gown after being treated for labored breathing, and weighing in at 5-foot-7 and 131 pounds, was ordered held without bond and booked into jail.
His former classmates thought they were having another drill when a fire alarm sounded, requiring them to leave their classrooms Wednesday.
That's when police say Cruz, equipped with a gas mask, smoke grenades and magazines of ammunition, opened fire with a semi-automatic weapon, killing 17 people and sending hundreds of students fleeing into the streets.
It was the nation's deadliest school shooting since a gunman attacked an elementary school in Newtown, Connecticut, more than five years ago. The overall death toll differs by how such shootings are defined, but Everytown For Gun Safety has tallied 290 school shootings in America since 2013, and this attack makes 18 so far this year.
Trump also issued a proclamation saying, in part, "Our Nation grieves with those who have lost loved ones," and planned to address the nation about the shooting. Among the many other responses, the New York Stock Exchange held a minute of silence after its opening bell.
Cruz legally purchased the AR-15 used in the attack about a year ago, law enforcement officials told The Associated Press. The officials, not authorized to discuss this publicly, spoke on condition of anonymity. Federal law allows people 18 and older to legally purchase long guns, including this kind of assault weapon.
Authorities offered no immediate details about a possible motive, except to say that Cruz had been kicked out of the high school, which has about 3,000 students. Students who knew him described a volatile teenager whose strange behavior had caused others to end friendships with him.
Cruz's mother Lynda Cruz died of pneumonia on Nov. 1 neighbors, friends and family members said, according to the Sun Sentinel . Cruz and her husband, who died of a heart attack several years ago, adopted Nikolas and his biological brother, Zachary, after the couple moved from Long Island in New York to Broward County.
The boys were left in the care of a family friend after their mother died, said family member Barbara Kumbatovich, of Long Island.
Unhappy there, Nikolas Cruz asked to move in with a friend's family in northwest Broward. That family agreed and Cruz moved in around Thanksgiving. According to the family's lawyer, who did not identify them, they knew that Cruz owned the AR-15 but made him keep it locked up in a cabinet. He did have the key, however.
He seemed like "just a mildly troubled kid who'd lost his mom" during the three months they lived together; respectful and quiet, but also said because his mother had died, Lewis said.
They had "no indication that anything severe like this was wrong," Lewis said. "He totally kept this from everybody."
Lewis also said the family was not aware of any other weapons in the gun cabinet he had, and couldn't talk about how long they knew of the AR-15 because people are looking to sue them now. Photos posted in an Instagram account linked to Cruz show a half-dozen weapons displayed on a mattress and a box of ammunition.
Victoria Olvera, a 17-year-old junior, said Cruz was expelled last school year because he got into a fight with his ex-girlfriend's new boyfriend. She said he had been abusive to the girl.
"I think everyone had in their minds if anybody was going to do it, it was going to be him," said Dakota Mutchler, also 17.
Cruz was taken into custody without a fight about an hour after the shooting in a neighborhood about a mile away. He had multiple magazines of ammunition, authorities said.
"It's catastrophic. There really are no words," said Broward County Sheriff Scott Israel.
The sheriff said 12 bodies were found inside the building, two more outside, and another a short distance away from the school.
Frantic parents rushed to the school to find SWAT team members and ambulances surrounding the huge campus and emergency workers treating the wounded on sidewalks. Students who had taken shelter inside classrooms began leaving in a single-file line with their hands over their heads as officers urged them to evacuate quickly.
Hearing loud bangs as the shooter fired, many of the students hid under desks or in closets, and barricaded doors.
"We were in the corner, away from the windows," said freshman Max Charles, who said he heard five gunshots. "The teacher locked the door and turned off the light. I thought maybe I could die or something."
Charles said he passed four dead students and one dead teacher on his way out, and was relieved to finally find his mother.
"I was happy that I was alive," Max said. "She was crying when she saw me."
Noah Parness, a 17-year-old junior, calmly joined others walking to their fire-drill area outside when he suddenly heard popping sounds.
"We saw a bunch of teachers running down the stairway, and then everybody shifted and broke into a sprint," Parness said. "I hopped a fence."
The scene was reminiscent of the Newtown attack, which shocked even a country numbed by the regularity of school shootings. The Dec. 14, 2012, assault at Sandy Hook Elementary School killed 26 people: 20 first-graders and six staff members. The 20-year-old gunman, who also fatally shot his mother in her bed, then killed himself.
This story has been corrected to fix the attribution of a quote to Dakota Mutchler, not Victoria Olvera.
Associated Press writers Freida Frisaro, Curt Anderson, and Joshua Replogle in Miami, Sadie Gurman in Washington and Bernard McGhee in Atlanta contributed to this report.