C3.ai shares tumbled more than 5% in extended trading Wednesday, despite better-than-expected revenue and a narrower-than-expected loss in the company’s fiscal third quarter.