Regular and chaotic dynamics in a laser with a saturable absorber