The interim president of Mali was attacked during prayers at the Grand Mosque of Bamako amid the Muslim festival of Eid al-Adha.