2 security personnel, 10 terrorists killed in Pak attack