A joint raid by U.S. and Afghan forces targeting senior Taliban commanders killed two American service members and 26 Afghan civilians on Thursday, authorities said, rare combat deaths for Western forces who handed over the task of securing Afghanistan to local troops some two years ago.