A canny trade by a small brokerage firm in two markets at the heart of the financial crisis has left some of the biggest players on Wall Street crying foul.

The trade, by Amherst Holdings of Austin, Texas, was particularly galling to the big banks because it turned what they believed was a sure-fire profit into a loss.

The burned banks include...