Former Cabinet minister Naledi Pandor has criticised the governments of Ghana and Nigeria for blaming South Africa over anti-migrant violence.