Five people were killed and at least eight injured Tuesday in an accident involving a farm tractor and two automobiles in western New York, the Yates County Sheriff’s Office said.