New York cop's act of kindness goes viral