Infrared behavior of the gluon propagator in Yang-Mills theory