Pakistan has ordered an investigation into allegations of harassment and unjust behaviour of police towards legally residing Afghan refugees and businessmen.