Again, both kamikaze attacks and scrambling are defensive reactions. If there’s no attack, there’s no defense. Combat moves done only to avoid combat do not trigger kamikaze attacks or scrambling.
A good definition of “attack” would be “combat movement into a hostile space or declaration of intent for combat in any space”.
With Kamikazes having the added requirement of : “If the allied player has moved ships into one of the above sea zones, …” ?
Which to me implies during this combat movement. Seems pointless to have this line otherwise, since you obviously couldn’t attack a ship that has never moved there.