The Los Angeles County Sheriff's Department bomb squad shown in a file photo. Photo by Jeremiah Dobruck.

Cerritos College was locked down for hours and classes were canceled after someone came into a classroom and claimed to have a bomb Tuesday morning, according to a campus official.

“At 11:53 in the morning a suspect walked into one of our classrooms, said he was a terrorist and had a bomb with him,” said college president Jose Fierro in a Facebook live video broadcast by the campus

A student immediately called 911, Fierro said. The suspect ran out of the building but was quickly apprehended by campus police, he said.

Authorities said they eventually reopened the campus after a bomb squad determined the area was safe.

While a Los Angeles County sheriff’s bomb squad scoured parts of the campus, people were advised to avoid the area around the administrative building on Alondra Boulevard between parking lots 3 and 4. Other campus buildings were placed on lockdown, and people inside were ordered to shelter in place.

Sheriff’s officials gave the all-clear at about 2:15 p.m., but classes were nevertheless canceled for the rest of the day.

Authorities said they’d detained the suspect, but no details about the person were immediately released.