Canada’s main stock index was dragged lower Wednesday by losses in energy stocks, while U.S. stock markets were mixed.