The French president said the operation was carried out "in strict compliance with the law of the sea."