Try to get a clue. Even if Article 5 were violated, that would not grant the opposing belligerent the right to attack the ship while it is in a neutral port.
The consequence is that the neutral state may intern the vessel or prevent it from departing (Hague Convention XIII, Article 24). Hostile acts in neutral waters remain strictly prohibited (Hague Convention XIII, Article 2; San Remo Manual, para. 15).
The Merkury was merely escorting other vessels and was not engaged in hostilities against Ukraine during its stay in Libya. There was no misuse (which would be the case, for example, if the ship had launched cruise missiles against Ukraine from that location, or something similar). Article V does not authorize its destruction in Benghazi.