Diplomat resigns to protest war