The type of trade barrier in this case would be an embargo. Even though the embargoes are usually used for different purposes, considering the circumstances in this case, we will have an embargo on the foreign fruits.
The trade barrier has a purpose to protect the domestic producers. By stopping the import of foreign fruits that are also produced in the country, the domestic producers will have the market for them and avoid the foreign competition.
This is a like a knife with two points. From one side it is a good move because the domestic producers are protected and will be able to make more profit. On the other side, the prices of the fruits will go up because the domestic producers will lack the competition that was making them lower the prices, which will be a hit on the pocket of the ordinary citizen.