Jarren Duran’s inside-the-park home run — a three-run shot — helped the Red Sox avert a three-game sweep by the Pirates.