A school in South Wales was placed into lockdown on Tuesday after three teachers were allegedly assaulted by a former pupil.