As presented, there is nothing to correct.That maybe technically correct, but if an official made that mistake and didn't make the correction he should be fired.
Firing a High School official for making this mistake is nonsense. His reputation among coaches and peers should dictate any action taken. (temporary loss of assignments, less/no future assignments...etc)
The mistake of giving the ball to the wrong team is less serious than making up a fix outside the rules.