Sweden’s first female prime minister resigns hours later