NPR editor resigns after accusing US outlet of liberal bias