Attempted child abduction sparks police warning