Chaotic Dynamics in an Impact Problem