The army said the attack had occurred during Easter celebrations at a church in northwestern Kaduna state. Northwest Nigeria has struggled with violence for years.