A New York police officer has been stabbed in a broad-daylight attack in Dobbs Ferry, about 20 miles north of Manhattan, according to the village police department.