Complex dynamic behavior in a viral model with delayed immune response