Which preposition to use with detonated

on Occurrences 1%

The Germans also introduced a new weapon in the form of fast motor boats controlled by a cable from the shore and guided by signals from aircraft, these boats being heavily loaded in the fore part with explosives which detonated on contact with any vessels attacked.

under Occurrences 1%

But this time I did not have the advantageous aid of having the torpedo detonate under the magazine, so for twenty minutes the Hogue lay wounded and helpless on the surface before it heaved, half turned over, and sank.

with Occurrences 1%

But the British soldier is a difficult person to impress or depress, even by immense shells filled with a high explosive, which detonate with terrific violence and form craters large enough to act as graves for five horses.

Which preposition to use with  detonated