If a ball is accidentally moved during a shot, the player is typically penalized by being awarded a foul. The ball is then replaced to its original position by the referee or opponent, and the opposing player is awarded the opportunity to take their shot.