Militant violence has surged in Pakistan in recent months, much of it blamed on the Pakistani Taliban which is separate from the Afghan Taliban but closely allied with them.