Red Sox tie it 9th, beat Yankees in 10th for 4-game sweep