Palo Alto Networks Inc.’s revenue jumped in the latest quarter, but the growth was its slowest pace as a public company and the cybersecurity company projected the deceleration would continue this quarter.

At the same time, a sharp increase in stock-based compensation and other expenses continued to weigh on results, widening the company’s quarterly loss.

Shares,...