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
An ambulance crew member told ITV News waiting outside hospitals to offload patients has become 'completely soul-destroying'.
No more snow - for the time being anyway! A bright and beautiful day but still feeling bitterly cold with an ice warning for tonight!
The Welsh Government will consult young people about their Brexit views, Minister for Children Huw Irranca-Davies has announced.