The country continues to experience ethnic tensions among its black population ( Afro-Mauritanians ) and white and black Moor ( Arab-Berber ) communities , and is having to confront a growing terrorism threat by al-Qa'ida in the Islamic Maghreb ( AQIM ) .