Original:  Nigeria's military said it had been trying to target Boko Haram fighters.
Updated:  Nigeria's military has called the bombing accidental, saying it was trying to target Boko Haram Islamic extremists.