Girl was criticised by teachers and school officials after being caught twice,