The Grace I sailed through territorial waters of an EU member. I'm not sure the information is yet sufficiently clear on position of the 2 ships apparently taken by the Iranians to confirm whether they were in international waters or not.
The equivalent in your analogy might be not allowing people to drink beer in your own garden, but having no influence over what they do in a pub.