Gunmen suspected to be Boko Haram Islamists raided a village in northeastern Nigeria as people were preparing for prayers, killing 39 people, local residents said Sunday.