NBC: UNLV gunman resigned as tenured professor after making sexual comment in class, former student says