Duterte warns of civilian cost in war on militancy