Booz Allen Hamilton (NYSE:BAH) executives said the government technology contractor exited what Chief Executive Horacio Rozanski called its “most challenging year” as a public company with stronger profitability than expected, even as revenue declined because of weakness in its civil business.