A.P. Moller-Maersk A/S unexpectedly lost money in 2016 as Denmark’s biggest company wrote down the value of some of the energy assets it plans to split off. Maersk shares fell as much as 7.1 percent as the Copenhagen-based conglomerate reported a 2016 net loss of $1.94 billion.