Carrefour has blamed fierce local competition for the end of its venture in the north African country of Algeria.