Existence of homoclinic orbits for a class of first-order differential difference equations