Dynamical Behaviors of an SIR Epidemic Model with Discrete Time