Four killed in upstate New York shootings, police say