NEW YORK—CNBC is canceling Shepard Smith’s nightly newscast after two years, with its new president saying he wanted to focus on the network’s core strength of business news. Smith, who is leaving the network, will have his last telecast sometime later this month. He did not have any immediate comment. Smith landed at CNBC after…