If any ship other than a Pakistani ship is detained under this Ordinance, or if any proceedings are taken under this Ordinance against the master, owner or agent of any such ship, notice forthwith be served on the consular officer of the country in which the ship is registered, at or nearest to the port where the ship is for the time being, and ...