"In case India perpetrates something wrong against Pakistan, we will also retaliate and inflict pain where it hurts the most," Musharraf said in an interview to SAMAA TV.
"We are not just any small country, we can also retaliate," he added.
The attack killed seven security personnel. Security forces killed all six attackers.
Referring to the incident later, Defence Minister Manohar Parrikar at a seminar said "unless pain can be transmitted to them, they will always end up giving pain to us. I am pained when my soldier dies".