NBC: Missouri teacher who used racial slur resigns; student who taped him suspended