HAYWARD -- King Middle School was locked down for almost two hours Wednesday morning after a robbery suspect was reportedly seen with a gun near the school, officials said.

About 10:20 a.m., officers were called to an area near the school at 26890 Holly Hill Ave. after a report of a gold-chain robbery involving two suspects, Hayward Police Lt. Roger Keener said.

Hayward Unified School District Superintendent Donald Evans said authorities locked down the school about 10:30. a.m. and lifted it at 12:10 p.m. No injuries were reported.

Police identified the first suspect as Pope Foketi, 18, of Oakland. He was arrested on suspicion of robbery. The second suspect, a 17-year-old male from Hayward, was also arrested on suspicion of robbery, Keener said.

"A witness to the robbery reported that one of the suspects may have had a gun," Keener said.

The suspects then got into a car, fled and were chased by police at speeds of about 35 mph in a residential area near the school. At one point, the car stopped and the suspects got out and ran, Keener said.

Officers immediately apprehended one of the suspects then set up a perimeter to catch the other, Keener said. The second suspect was taken into custody shortly afterward.

When officers ran the license plate on the car, they learned it was reported stolen out of Oakland, Keener said.

Officers spent a portion of the day searching for a weapon in a greenway adjacent to the school where Keener said it may have been tossed.

No weapon was recovered, he said.

Contact Natalie Neysa Alund at 510-293-2469. Follow her at Twitter.com/nataliealund.