NBC: Top White House scientist resigns, admits he 'caused hurt'