Detonate a small but still relatively powerful bomb upstream (or maybe multiple small but staggered ones), to create a small tsunami-like wave, which in turn will move at least the ship's aft/stern (as the ship creates in the canal a "V"-like shape which will therefore concentrate most of the wave's force in that area) when it hits it. Almost guaranteed to work, theoretically.