Rule 3-4-4-a is pretty explicit that the ZAP-10 only applies on fouls before a change of team possession. So in your play situation, no ZAP-10, 1st and 10 for team B at A-25, clock on the snap.
Emphasis is mine: "With the game clock running and less than one minute remaining in either half, before a change of team possession if a player of either team commits a foul that causes the clock to stop, the officials may subtract 10 seconds from the game clock at the option of the offended team. "