American and Czech forces are under investigation for the death of an Afghan commando who was beaten while in NATO custody in western Afghanistan, American and Afghan officials said, demonstrating the tensions that have grown among military forces after 17 years of war.