Police officer cleared in shooting death of ailing veteran in New York