Tencent Holdings said it would distribute most of its shares in JD.com as a special dividend to investors, as China’s dominant social media network made a surprise move to pare back its stake in the country’s second-largest e-commerce platform in response to Beijing’s antitrust demands.