Mali has been plagued by insurgencies fought by affiliates of al-Qaida and the Islamic State group, as well as a separatist rebellion in the north.