Existence of homoclinic solutions to periodic orbits in a center manifold