Teacher warned over ‘tantrums’