A former Filipino militiaman accused President Rodrigo Duterte of ordering the killings of around 1,000 people while he was still a city mayor.