Referee removes ball from behind rim