Japan said Friday it would impose a temporary 50% tariff on frozen beef from the U.S. and several other countries, a move Washington said could inflame trade tensions with an important partner.

The action, which Tokyo officials described as a required response to a recent import surge, came after President Donald Trump named Japan as one of the countries contributing to the U.S. trade deficit.

Japanese...