Depth charges like the ones used against German U-boats and Japanese I-boats in the Atlantic and Pacific respectively.
I wonder if the WWII-era sea bombs are sufficiently effective against an Iranian mini sub?
against swimmers you could toss grenades and disable them.
humans cannot withstand the shock wave even from a few ounces of Comp B let alone 600lb of Tritonal or RDX