China’s naval commander told his U.S. counterpart there was a risk of “war” if the U.S. stays in the South China Sea.