Bifurcation and chaos in a periodically stimulated cardiac oscillator