it looks like they were trying to speed things up. if the ref wants the ball, you have to give it to him. i highly doubt Duncan would be taking the ball away from someone.
the refs have to have control over the game and not let the players push them around. good call by him.