Kabul called Sunday for the immediate release of five former Guantanamo Afghan detainees sent to Qatar in exchange for the freedom of American soldier Bowe Bergdahl, branding their transfer to a third country illegal.