At least five people have been killed and 35 others injured in an explosion at a mosque in Nigeria, a media report said on Thursday.