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
Through this evening and overnight it will remain cloudy with some persistent rain and drizzle by dawn.
A couple from Wales, who moved to South Africa to live 40 years ago, have been killed on their farmland estate there, police have confirmed.
Our Valleys Correspondent Hannah Thomas has been spending time discovering why the people who live in the Valleys love their communities.