Mark Padgett wroteThe referee's whistle in this case made the ball dead before the contact occurred (different than calling a shooting foul). You could have a flagrant foul, but it would be a technical for contact of a flagrant nature during a dead ball. The only difference would be that any player could then shoot the free throws and that the ball would then be inbounded at the division line.
Good point, Mark. I completely missed the official issue a technical foul to the coach.