Security forces say they have killed at least 17 militant attackers in an ongoing operation.