Delay-induced bifurcations and chaos in a two-dimensional model for the immune response