It's not the foreign producer who must raise her prices to pay for the tax. It's the local importer. The net effect on the consumer is that the price of imported goods goes up so then, as you say, the local producers can raise their prices and increase their profits.