In a series of attacks in the village of Dalori in north-eastern Nigeria, Boko Haram militants firebombed huts, and opened fire on civilians on Saturday, reported the Al Jazeera.
They also tried to attack a refugees camp close to Dalori, home to some 25,000 people but were repelled by troops. Witnesses said they heard the screams of children burning to death as huts and homes were razed to the ground.
The war between Boko Haram and the Nigerian government has killed 20,000 people in six years and driven 2.3 million people from their homes.
The UN children's agency says up to one million children have been forced out of school.
More than 200 school girls were abducted from Chibok town in 2014 by Boko Haram. The abduction has aroused international outrage. None of the missing girls has been found, although government said it is making efforts to know their whereabouts and ensure their freedom.
Nigeria has seen increase in attacks carried out by the group since Nigeria's new President took office in May, unleashing a wave of violence that has claimed 800 lives in just two months.