The longtime newscaster said he would leave the daily news show at the “start of summer.” NBC did not immediately name a successor.