In a statement on Cwmcarn High School's website, headteacher Jacqui Peplinski said "concerns were dealt with swiftly".
"There was no risk to any staff or learner and the relevant support services were contacted as a precautionary measure."
"Cwmcarn High is a caring and safe environment and we are committed to everyone’s safety."
More top news
Glamorgan sealed their first T20 Finals Day appearance for 13 years after beating Leicestershire by nine-wickets in Cardiff.
Tonight will stay mostly dry with clear spells, and it will be less humid than last night.
Jordan Ayew says he hopes Swansea can take their Carabao Cup victory into their clash with Crystal Palace.