A Nigerian imam who gained international recognition for saving hundreds of lives from a mainly Christian community during an outbreak of violence has died at the age of 90.