If his story is true, it is clear that the teacher did not have racist intent. It was still the wrong behaviour from one who should be a role model.
Of course, the student denies using the term first and, if this is true, the teacher's comments could well have been racist.
In truth, there is too much that is not known about the encounter for TERB to make a judgment.