AT&T also topped expectations for earnings, revenue and free cash flow with its second-quarter results.