Nigeria is expected to recall its top diplomat in South Africa, where riots in recent days have targeted mainly foreigners from other parts of Africa.