The authorities said that seven Kenyans were working illegally. The arrests came amid increased tensions between South Africa and the United States.