The conflict was complicated by a military coup that took place in March and later fighting between Tuareg and Islamist rebels.