BAUCHI, Nigeria — Gunmen fired at worshipers and burned four churches on Sunday in a village just miles from the town where more than 200 schoolgirls were kidnapped, witnesses said.

At least 30 bodies had been recovered, but more were turning up in the bushes, where people tried to escape from the violence in the village of Kwada, said a member of a vigilante group organized to repel such attacks.

“They killed dozens of people and burned houses after attacking worshipers,” the vigilante, Mallam Yahi, said by telephone after he fled to the nearby town of Chibok, in the northeastern state of Borno, where the girls were abducted in April.

Mr. Yahi said the attackers, believed to be members of the extremist group Boko Haram, went on to Kautikari, where they shot villagers and burned down homes. He said that members of his group had not yet reached Kautikari, so they did not know what the death toll was there.