The Taliban insurgent group claimed responsibility for two blasts which it said killed dozens of people in Afghanistan on Tuesday.