Kidd had been screened out of the play. Terry switched. Chalmers got open because Kidd didn't identify the switch early on. Watch the video. Kidd was around the FT line with multiple Heat twixt he and Wade. Terry, albeit likely in ignorance, made a smart play by identifying the need to deny Wade at the top of the arc. It should have been something discussed for the defense that if screened off Wade, Kidd retreats and the roaming Terry jumps out in defense.
It was a broken defensive play all around, but Terry sticks with Chalmers, then Wade gets the ball atop the arc and after the game he had, I think you'd rather Chalmers take the shot.
Or, with a timeout to go defense/offense, Carlisle should have had Stevenson in the game, then called timeout to reinsert Terry for offense.
IMO, this falls mostly on Carlisle, first for not having the better defensive personnel in the game, and, next for not having discussed the likely scenario of a double screen that frees up Wade and how to properly defend it.