Philippine President Rodrigo Duterte said joint military exercises scheduled for October between the Philippines and the U.S. will be the last for the longtime allies, as he seeks to avoid upsetting China, with which he hopes to build stronger trade and investment ties.

He also said he would end routine joint naval patrols in the South China Sea.

“I...