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
Mark Drakeford has been confirmed as the new First Minister after a vote in the Welsh Assembly.
There may be the odd spell of sunshine this afternoon but it's looking grey and cloudy for most. Highs of 10°C.
Theresa May has vowed to fight a vote of no confidence from Conservative MPs. But will Welsh Tory MPs support the Prime Minister?