Militants have staged a wave of attacks over the past few years in Pakistan , including several in the capital .