Activist Malala Yousafzai is urging Pakistan to stop deporting undocumented Afghans after Islamabad said it would remove illegal migrants.