A teacher who admitted sexual offences involving a schoolgirl has been banned for life after ignoring warnings about his conduct towards her.