The bandits attacked after some members of the community met to discuss measures to be taken against them.
The News Agency of Nigeria (NAN) reports that the bandits attacked the area after some members of the community held a meeting to discuss measures to be taken against the bandits during the 2018 farming season.
The bandits had earlier threatened that there would be no farming activities in the area in this year's rainy season.
Liman Umar, one of the community leaders and the deputy Imam of the village, told newsmen that the bandits had been harassing people in the area, brandishing sophisticated weapons without talking to anyone.
"It was shortly after our local vigilante members held the meeting on Tuesday that the bandits finally struck and killed only men including those who tried to escape," Umar said
He said many bodies were found decomposing in the bushes, and that some of the corpses could not be brought into the village for proper burial because people were afraid to go and get them as the bandits were believed to be hiding on the outskirts of the village.
He said one of the villagers, Danladi Shabalai, who was caught communicating with the bandits, was shot and killed by security men.
The Chairman of Anka LGA, Alhaji Mustapha Gado, confirmed that 32 people were buried including a woman and her child who died at a hospital in Gusau.
Gado said more bodies were still being searched for in the bushes and that security measures had been stepped up in the area, but that the villagers had all fled out of fear that the bandits might return.
The Emir of Anka, Alhaji Attahiru Ahmad, who is also the Chairman of the state's Council of Chiefs, lamented that the horrific incidences of bandits' attacks had continued unabated in the area due to inadequate security.