South African police arrested more than 900 people during anti-migrant protests on Tuesday, a senior police official said on Wednesday.