10 security personnel were killed and others injured in an armed attack in Pakistan