The Taliban says it carried out a deadly suicide attack targeting government soldiers in southern Afghanistan.