Detention of two South Africans ‘arbitrary, unlawful’