Ukrainian prime minister resigns