J.R. Smith sank a baseline 21-footer at the buzzer after a Phoenix turnover with a second to play, giving the depleted New York Knicks a 99-97 victory over the Suns on Wednesday night.