"In addition to the participation of the Portuguese Navy and Judicial Police, the operation was supported by the United States Drug Enforcement Administration (DEA) and the Joint Inter-Agency Task Force – South (JIATF-S), and the United Kingdom’s National Crime Agency (NCA), working together within the scope of MAOC-N."
from the linked press release, I'm assuming DEA tipped off the Euro agencies that the sub was headed their way