Beckett goes 5 shutout innings, Red Sox beat Rays