Deputy prime minister resigns