Paul Maholm (10-11) gave up eight hits — including Gomez's homer — and struck out seven in seven innings.
Lohse, facing Atlanta for the first time this season, began the night 3-1 with a 4.97 ERA in 10 career starts against the Braves.
MARLINS 3, PHILLIES 2
MIAMI (AP) — Adeiny Hechavarria drove in three runs, including a go-ahead run in the eighth inning, for Miami.
Hechavarria hit a two-run triple in the second before driving in the run that made it 3-2 on a fielder's choice.
Justin Ruggiano walked and Placido Polanco singled for his third hit in the eighth off Ethan Martin (2-5) before Hechavarria hit a grounder to shortstop Jimmy Rollins, whose throw went wide of catcher Carlos Ruiz allowing Ruggiano to slide in safely.
Steve Cishek pitched the ninth for his 33rd save in 35 chances. It was Cishek's 28th consecutive save setting the team record previously held by Todd Jones in 2005.
Chad Qualls (5-2) got the final out in the eighth to earn the victory.
Phillies starter Cole Hamels pitched six innings and allowed two runs. He struck out six as he reached 200 strikeouts (202) in a season for the third time in his career and the second consecutive season.
The 2008 World Series MVP finished his season with an 8-14 record and 3.60 ERA.
PADRES 12, DIAMONDBACKS 2
SAN DIEGO (AP) — Ian Kennedy's solid pitching and offensive production throughout the lineup led San Diego.
Kennedy (7-10) struck out seven and allowed two runs and six hits in seven innings while facing his ex-team for the second time since being acquired by the Padres on July 31. He had a no-decision in their previous meeting.
The Padres hit three homers, four batters had at least two RBIs and four batters finished with multiple hits.
Jedd Gyorko continued his solid season, as his 21st home run placed him one ahead of the Atlanta Braves' Evan Gattis for the major league lead among rookies. Chase Headley had three RBIs, with Gyorko and Chris Denorfia getting two each.