NBC: Pennsylvania teacher accused of calling Muslim student a 'terrorist' resigns