The Nigerian government says it is considering taking retaliatory action against South Africa following continued xenophobic attacks on Nigerians living there.