It was only the latest example of a public rift between the president and his chief diplomat over North Korea.