No it is not the same. Because everyone in the country pays and expects protection from criminals (not that they get it).
One cannot expect to go abroad and receive protection from the United States and one cannot expect retaliation. Otherwise every mugged American in Paris could bring down war on the Country of France. Absurd.
Furthermore, the only authorization in the Constution for the use of our military is to repel invasions, enforce federal laws and put down insurrection. End of list.
If I get mugged in Paris and the French police fails to defend me, I can ask the US government to retaliate. The retaliation of the US government would be morally justified. It may or may not choose to retaliate based on the national interest.
Exxon's ownership of oil installations abroad is in the national interest.