A New York man was sentenced Thursday to life without parole for killing four people at a Long Island pharmacy in June.