Shares of security company ADT Inc. slid 3% Thursday, after the company posted an unexpected loss for the second quarter as it continued to grapple with high costs, including to service debt taken on as part of a 2016 leveraged buyout by Apollo Global Management.