Militant attacks have soared in recent months in Afghanistan .