A Taliban spokesman claimed responsibility for both attacks .