Swedish PM resigns after losing no confidence vote