Two 14-year-old boys have been arrested in connection with bringing a firearm to Milpitas High School Thursday, prompting two separate lockdowns, according to Milpitas police.

Police said other students saw one of the two boys with a handgun in a bathroom at the school at 1285 Escuela Parkway around 12:05 p.m.

The students reported it to school security staff, which found one of the boys with the unloaded handgun in the bathroom and a loaded magazine in his backpack. A school resource officer arrested the first suspect.

The incident briefly prompted a lockdown at the school, however, the lockdown was lifted around 1 p.m., police said. In addition to the high school, nearby Pomeroy Elementary and Russell Middle School were also placedon lockdown.

Not too long after, around 2:45 p.m., a rumor about a different armed student prompted the second lockdown of the day. In that incident, police were able to contact that suspect at a home off campus and determined that he didn't have a weapon on him.

At that point the second lockdown at the high school was lifted.

Police concluded that the gun seen in both incidents was the same weapon. The first student had allegedly brought the gun to school days before and gave it the second student to hold.

Both students were booked into Santa Clara County Juvenile Hall on suspicion of bringing a firearm on school grounds and carrying a concealed weapon. Anyone with information on this case is asked to call Milpitas police at (408) 586-2400.