Story highlights The bomb detonated among people displaced by Boko Haram violence in the city of Maiduguri in northeastern Nigeria

The victims were undergoing security screening at a military checkpoint

(CNN) Eight people were killed and eight others injured Sunday in a suicide bombing in Nigeria, an army spokesman said.

The bomb detonated among people displaced by Boko Haram violence in the city of Maiduguri in northeastern Nigeria, according to Col. Sani Usman.

The victims, mostly women and children from Dikwa, were undergoing security screening at a military checkpoint.

Nigerian troops liberated Dikwa from Boko Haram ‎in July, allowing people from the town to return home, and residents from nearby villages to move to the town for military protection against deadly raids. But a lack of food and other basic necessities forced people to flee.

Boko Haram, which operates mainly in Nigeria, has become the most deadly terrorist group in the world, according to the Global Terrorism Index 2015, compiled by the Institute for Economics and Peace. The militant Islamist group has pledged allegiance to ISIS.