A simliar play was discussed on the NFHS board. A case play does exist, but I don't think it's all encompassing. In the play described, I would propbably go with the correctable error, per the case book. But what if B simply dribbles down the court and with 5 or 3 or 1 second(s) left, one of the officials realizes we should have shot 2?
http://www.nfhs.org/Forum/nfhs/Forum3/HTML/000678.html