The Santa Clara County Calif. Sheriff's Office logo. seal badge (Santa Clara County Sheriff's Office via Bay City News)

A 17-year-old suspect was arrested Thursday in connection with a fatal shooting last month at a large birthday party near Morgan Hill.

One person died and six others were injured July 25 during a pop-up party promoted on social media that drew about 300 people in Coyote Valley, northwest of Morgan Hill, authorities said.

Just before the shooting, Santa Clara County sheriff’s deputies responded about 10:15 p.m. to reports of intoxicated people in the street and someone throwing bottles at cars.

When they arrived, deputies encountered chaos as partygoers fled after hearing gunshots, according to the Sheriff’s Office.

Deputies provided medical assistance to the victims until paramedics arrived and pronounced one person dead.

On Thursday, the Sheriff’s Office and tactical teams served a high-risk search warrant at a home in Salinas, where the suspect was taken into custody.

Several tips, videos and photos provided by community members helped detectives identify the suspected shooter, leading to the arrest, the Sheriff’s Office said.

“We’re deeply grateful to the community members who stepped forward and shared what they knew,” Sheriff Robert Jonsen said.

The suspect, whose name was not released, is scheduled to face charges Monday at a detention hearing at the Santa Clara County Juvenile Justice Courthouse in San Jose.