Halliburton ( HAL) swung to a third-quarter profit, but the company's top line missed Wall Street estimates.

The oil-service company said late Monday that it earned $499 million, or 95 cents a share. A year earlier, the company lost $44 million, or 9 cents a share, due largely to an asbestos and silica settlement.

A Thomson First Call survey had expected the company to earn 82 cents a share.

Revenue rose 6% from a year ago to $5.1 billion. This increase was largely attributable to higher activity in the company's Energy Services Group. This was partially offset by lower revenue in the company's KBR unit on government services projects in the Middle East, as well as offshore construction and other projects nearing completion in its energy and chemicals segment.

The top-line results were slightly below the Thomson First Call consensus expectations of $5.24 billion.

In after-hours trading, shares of Halliburton rose 31 cents to $61.40.