According to the police the teenage bomber targeted the mosque as people arrived for morning prayers.
Othman Abubakar, a police spokesman said the bomber was about 17 years old.
No group has yet claimed responsibility, but Boko Haram carries out regular attacks in the region.
Reports say the death toll varied from at least 20 to 50.
Many more people were injured and taken to nearby hospitals.