A clash between armed militants and security officers in a village in the Stavropol region of southwestern Russia ended Friday evening after more than 24 hours of sporadic fighting , with 12 militants and at least 6 security officers dead .