Ex-teacher pleads guilty in assault