Submarine have to face a round of fire from the attacking aircraft, then, if it has not been hit, at the end of the round it can submerge.
All Submerged submarines resurface at the end of the turn of the power in which turn they had been submerged. Example: UK aircraft attack a German submarine and miss. The German submarine then submerges. The submarine resurfaces at the end of the UK turn.