Philippine President Rodrigo Duterte had previously said that he wanted to avoid confrontation with China.