The student's name was not released.
"We are thankful that our students came forward with information so a dangerous situation was averted," principal Eclan David said in a statement on the school district's Web site."We do not tolerate weapons on campus."
A letter was sent home to parents about the incident, David said. The school has about 450 students.