Airbnb Inc. swung to a profit in the second quarter on the back of strong revenue, as people continued to book suburban rentals despite hosts raising prices. But the company issued a weaker-than-expected outlook that overshadowed otherwise strong results. Its stock retreated over 9% in after-hours …