The attempted bombing comes as Nigeria has launched a major offensive against Boko Haram following an escalation in attacks by the jihadist group over the festive season.
Last Wednesday, 14 worshippers were killed when a suicide bomber attacked a mosque in Gamboru during morning prayers, according to vigilantes and residents.
Boko Haram had previously controlled the town, a trading hub, for over a year after seizing it in August 2014, along with the neighbouring Ngala.
Nigerian troops retook both towns in September 2015 with the help of Chadian forces.
Despite the recapture of the area, Boko Haram fighters continue to launch offensives, ambushing troops and vehicles, and attacking farmers and loggers.
Last week, Boko Haram leader Abubakar Shekau released a video message claiming a series of attacks in the northeast, including those in Gamboru.
Boko Haram's eight-year insurgency against the government of Nigeria has spilled into neighbouring Niger, Chad and Cameroon, killing around 20,000 people and displacing more than 2.6 million.