Boko Haram is suspected to be responsible for recent attacks in Nigeria that killed two dozen people on Sunday.

Attackers burned down several houses and killed at least 10 people of the remote Kwajafa village in Borno state, according to Bloomberg News.

There was a separate attack on four villages near Nigeria's border with Cameroon that also left about 10 people dead.

According to Reuters, Boko Haram militants disguised themselves as preachers before attacking at least 24 people and wounding several others.

Militants gathered people at a local mosque in the remote village of Kwajafa and pretended to preach Islam, according to an eye-witness, Simeon Buba.

"They opened fire on them and killed many people," Buba said. "People didn't know the Boko Haram men came for attack because they lied to our people that they came for preaching."

Survivors of the attack are being treated for gunshot wounds and burns from the fires at a local hospital.

Resident Ahmad Ali said the death toll may likely pass two dozen, Yahoo! News reports according to AFP.

Ali said the insurgents burned nearly half of the village before they left.

Militants killed seven people going to a market in Chad on Friday and then sent landmines on the road close to the Nigerian border.

President Muhammadu Buhari of Nigeria vowed to take charge of the fight against Boko Haram in late May. He promised to be more effective than former President Goodluck Jonathan.

Buhari said he would implement development programs that target impoverished regions of Nigeria to help fight against the militant group in addition to forcing them out.

Boko Haram has killed more than 13,000 people within the past six years in an attempt to impose Islamic law on Africa's biggest economy. New York-based Human Rights Watch reported that there have been at least 1,000 murders this year so far.

The Islamist group's name means "Western education is sin" in the local Hausa language.