Taliban militants have claimed responsibility for killing 10 medical aid workers, six of them Americans, in northern Afghanistan.