Bifurcations and chaos in the three-level model of a laser with coherent optical pumping