Pulwama-style attack averted