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
A cold night with a yellow warning in force for snow and ice. Winds will remain strong but a largely dry and bright day tomorrow.
In the first of our specials looking at the Welsh education system, we visited a new primary school in Llanelli.
A six-part series following the lives of the people who live and work in the shadow of Snowdon, one of the busiest mountains in the world.