The attacks reflect a surge in violence as armed gangs continue raiding villages in northwest and central Nigeria.