Bifurcation and chaos in a discrete activator-inhibitor system