Apple Inc. is closing a retail store in China for the first time, marking a notable retreat in a market where the iPhone maker is striving to revive sales.