The attack was one of several in China in late October and November and caused Chinese leader Xi Jinping to order local governments to take steps to prevent future “extreme cases.”