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.
Two teenage girls wearing explosive vests were shot dead by soldiers in a town in north eastern Nigeria just days after a blast killed 14 worshippers, militia sources said on Tuesday.
Soldiers patrolling the town of Gamboru opened fire after the two girls, strapped with explosives, refused to remove the vests in the early hours of the morning. A third girl was arrested.
"Three teenage suicide bombers were found by soldiers and two of them were killed while the third was arrested with her explosive belt," said Umar Kachalla, a civilian militiaman in the town close to the Cameroon border.
"Two of the girls who were walking together were asked to remove their vests but they refused and were shot dead by troops," he added.
Soldiers spotted the third girl after she abandoned her explosive vest in a nearby empty building, said another militiaman Shehu Mada.