Under which maritime laws exactly?
Article38
Right of transit passage
1. In straits referred to in article 37,
all ships and aircraft enjoy the right of transit passage, which shall not be impeded; except that, if the strait is formed by an island of a State bordering the strait and its mainland, transit passage shall not apply if there exists seaward of the island a route through the high seas or through an exclusive economic zone of similar convenience with respect to navigational and hydrographical characteristics.
2.
Transit passage means the exercise in accordance with this Part of the freedom of navigation and overflight solely for the purpose of continuous and expeditious transit of the strait between one part of the high seas or an exclusive economic zone and another part of the high seas or an exclusive economic zone. However, the requirement of continuous and expeditious transit does not preclude passage through the strait for the purpose of entering, leaving or returning from a State bordering the strait, subject to the conditions of entry to that State.
3. Any activity which is not an exercise of the right of transit passage through a strait remains subject to the other applicable provisions of this Convention.
Article39
Duties of ships and aircraft during transit passage
1. Ships and aircraft, while exercising the right of transit passage, shall:
(a) proceed without delay through or over the strait;
(b) refrain from any threat or use of force against the sovereignty, territorial integrity or political independence of States bordering the strait, or in any other manner in violation of the principles of international law embodied in the Charter of the United Nations;
(c) refrain from any activities other than those incident to their normal modes of continuous and expeditious transit unless rendered necessary by
force majeure or by distress;
(d) comply with other relevant provisions of this Part.
http://www.un.org/depts/los/convention_agreements/texts/unclos/part3.htm
How exactly did this particular destroyer on this particular passage not comply with article 39?
Sure. Or to from which to defend its own interests on the opposite bank.