This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

The agency said the student, a junior at Saugus High School in Santa Clarita, died just after 3:30 p.m. PT (6:30 ET).

Authorities had said the gunman on Thursday — his birthday — had used his last bullet to shoot himself in the head.

The shooter’s motive is a mystery.

“There’s nothing really that stands out (with the suspect). He wasn’t a loner. Wasn’t socially awkward. Was involved in student activities. Student athlete,” Los Angeles County Sheriff Alex Villanueva told CNN “New Day.” “This is kind of out of the blue, shocking pretty much everyone who knew him.”

Investigators are digging into the suspect’s social media and background, he said. He was identified as Nathaniel Berhow by the sheriff’s department and lived with his mother, who was with him when he died. His father died in 2017 of natural causes.

There appears to be no connection between the shooter and the victims other than all were students, the sheriff said.

“He wasn’t chasing anyone,” Villanueva said. The victims “appeared to be who was around him, available at the time.”

Students followed their active shooter training

After the gunshots began, and five students were hit, training kicked in for thousands of pupils stunned that gun violence they had once protested had invaded their Southern California campus.

Many ran to safety, some hid, some covered windows, some barricaded doors shut. And some cared for victims who had been shot by a fellow student. A choir teacher barricaded her classroom and treated one of the victims.

“Kudos to all of them for a job well done and, hopefully, that’s a job we never have to do again,” Villanueva said Friday.

The sheriff said Saugus High School had an active shooter drill just a few weeks ago. The students on Thursday did exactly as they were trained, he said.

Authorities said that shortly before school was to begin at the school, the shooter walked into a campus area known as the quad, took a .45-caliber pistol from his backpack and shot the people near him before using shooting himself.

Two of the students shot were still in the quad when help arrived seconds later. Arriving law enforcement officers didn’t realize the third person was the shooter and not a victim.

The other victims fled and apparently were helped by classmates.

Two students, 15-year-old Grace Anne Muehlberger and 14-year-old Dominic Blackwell, died at a hospital. Three other teens were wounded and are expected to survive.

Authorities earlier had said Muehlberger was 16. Both victims were identified by the Los Angeles County Coroner’s office.

10 years. 180 school shootings. 356 victims.

Detective dropping off child was first to aid victims

Training kicked in for three off-duty law enforcement officers and the school resource deputy who was just arriving at the school of 2,400 students.

An off-duty detective was dropping off his girlfriend’s son at Saugus High School when he saw hundreds of students running from the campus Thursday morning. He pulled in and asked a student what was going on.

Someone was shooting, Detective Daniel Finn was told. Finn rushed from his car to the scene where unbeknownst to him six people had been shot, two fatally.

He and another off-duty officer found two of the five victims and the shooter still on the ground of a campus area known as the quad. Finn said he saw the shooter’s gun but wasn’t aware one of the people being treated was the gunman.

“My main concern then was securing the scene, treating the victims, and trying to make sure there wasn’t an additional shooter,” Finn told reporters Friday.

Finn, a former school resource deputy now with the Los Angeles County Sheriff’s Department, told an administrator to grab medical aid bags from the school office. A third off-duty officer and the current school resource officer assisted him in treating the victims until medical help arrived.

The weapon apparently jammed, sheriff says

The shooting added Santa Clarita to a growing list of cities affected by gun violence in what’s become a recurring nightmare in the United States.

The shooter pulled out the large-caliber pistol without saying a word and fired one round, Villanueva said.

After shooting one student, he cleared a jam on the weapon and fired an additional four bullets at others, then himself.

“That ended it all in 16 seconds,” the sheriff added.

Though it was not immediately known where the shooter got the gun, he seemed to have fired this pistol before, the sheriff said.

The suspect cleared the malfunction quickly, Villanueva said, discussing surveillance video from the high school that showed the attack.

His father had been a hunter and possessed firearms, and there were other firearms found in his home, Villanueva said.

“The six firearms (recovered from the home) were firearms that were registered from the deceased father,” Villanueva said. “We’ve accounted for all six and they do not match the weapon recovered (at the school) so that is an ongoing part of the investigation, the origin of the weapon.”