Rampage in Pakistan Shows Reach of Militants