Guterres called for those responsible for the violence to be swiftly brought to justice, said Stephane Dujarric, the spokesman.
The UN chief expressed his deepest condolences to the bereaved families and to the government and people of Nigeria and wished a speedy recovery to the injured, Xinhua said.
Guterres remains deeply concerned about the persisting violence in the Lake Chad Basin region, said the spokesman.
The UN chief commended national and regional initiatives to bring peace and stability to the area and to address the root causes of the conflict. He reiterated his calls on the international community to increase support to regional efforts in the fight against Boko Haram in the Lake Chad Basin.
Boko Haram insurgents ransacked the Mailari village in the restive Borno State on Sunday. Reports on the death toll varied from 19 to over 60.