A Taliban attack killed dozens of security personnel, while members of the armed group held talks with US in Qatar.