KABUL, Afghanistan — A convoy of American troops survived a huge suicide bomb attack in Kabul on Tuesday afternoon, only to find themselves struggling against a gathering crowd of Afghans who were trying to tend to civilians wounded in the bombing.

The confusing scene left one American soldier wounded, possibly by a knife, as Afghans shouted, “Death to Americans,” and accused the soldiers of opening fire on them in the frightening seconds after the suicide attack, witnesses said.

The episode hinted at a lingering wellspring of anger against American troops even as the United States’ military presence in Afghanistan is receding. Convoys of heavily armored troop carriers are still spotted routinely in Kabul making shuttle runs between bases and embassies and the airport.