This attraction continues until the ball first touches the rod. At that point, the ball suddenly flies backward. It then swings away from the rod every time it is approached.
Why was the ball first attracted? And then why does the ball change its mind and try to stay as far from the rod as possible?