School safety procedures are being reviewed across Wales after two teachers and a pupil were stabbed.