Two things:
1. I thought that the foul was clearly prior to the action of shooting, but that is coming from an NFHS and NCAA perspective. The NBA rules on this aspect of the game seem to be different and give the offensive player a more favorable slant. Perhaps by NBA rules he was shooting.
2. I thought that the offensive player traveled after being fouled and prior to releasing the try for goal. Of course, by NBA rules, perhaps he didn't travel.