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
Catch up here with the final episode of Adrian's Election Adventure.
Tributes have been paid to Welsh rugby league player Danny Jones, who died while playing for the Keighley Cougars yesterday afternoon.
People in Wales do not undertake the monthly recommended checks for skin cancer, a survey has shown.