Philippine President Rodrigo Duterte was preparing to make a deal with Islamic State-inspired militants in the days after they laid siege to a southern city, but aborted the plan without explanation, an intermediary involved in the process said.