Middlebrooks homers twice in PawSox's 9-6 loss