CLEVELAND (AP) The spark came from Alex Rios. The sparklers were courtesy of the Indians.

Kansas City's Kris Medlen allowed five hits over 6 1-3 innings and Rios connected for a home run off Josh Tomlin that launched some unintentional fireworks, leading the Royals to a 2-0 win over the Cleveland Indians on Tuesday night.

Medlen (4-1) shut out the Indians before Royals manager Ned Yost turned things over to his top-ranked bullpen. Ryan Madson struck out two in the seventh, Wade Davis got through the eighth and Greg Holland worked around a two-on, no-out mess he created in the ninth for his 31st save.

More from FoxSports

The Royals won for just the third time in 11 games and moved a little closer to wrapping up an AL Central title.

Rios put the Royals ahead 2-0 with two outs in the fifth off Tomlin (5-2) by hitting his fourth homer, a shot onto the pedestrian patio in left that prompted an accidental celebration in Progressive Field. As Rios rounded first, fireworks exploded above the ballpark, a tradition usually reserved for any homer hit by an Indians player.

TV cameras caught the distraught fireworks technician with his hands clutching his head after his quick-trigger mistake, which prompted a chorus of boos from the small crowd.

''It was nice,'' Rios joked about the unexpected explosion. ''It's the first time that's happened to me in a road game. When I heard all the screams, it crossed my mind that they somehow called it foul. It shook me a little bit. It caught me off-guard. When I was rounding second, I heard people screaming and that's when I thought something happened, but it's all good.''

The Indians, who pulled back to .500 for just the second time since April by winning the series opener, fell to 13-6 since Aug. 25.

It was a hard-luck loss for Tomlin, who had won his previous five starts. The right-hander gave up two runs and four hits in his second complete game this month. After giving Rios' homer, Tomlin retired 13 of 14.

Tomlin didn't take any satisfaction in his strong outing.

''It doesn't feel good,'' he said. ''I'm glad I was able to keep the team in the game, don't get me wrong, but we need wins, and that's the bottom line. It doesn't matter how well I pitch, if their guy does better than me on the other side then it's still a loss. And that's not what we need right now.''

Medlen, who was making just his fifth start since bouncing over from the bullpen last month, improved to 3-0 on the road. The right-hander missed all of last season following Tommy John surgery.

''We needed that,'' Yost said. ''We needed a good pitching performance. We needed to get to the bullpen in the seventh inning with the lead and that's exactly what Kris provided for us.''

The Royals took a 1-0 lead in the second on Perez's RBI single after the Indians failed to catch Mike Moustaskas' foul pop behind the plate with two outs.

Catcher Yan Gomes yanked off his mask and looked skyward but couldn't locate the high pop, which fell untouched about 15 feet from the batter's box as Tomlin and third baseman Giovanny Urshela helplessly looked on. Moustakas made the Indians pay by following with a double off the center-field wall and scored on Perez's clutch hit.

The Royals entered batting .280 with two outs - 37 points higher than the major league average.

HOLLAND'S HEALTH

Yost went to the mound with a trainer in the ninth to check on Holland, whose velocity has noticeably dropped.

''There's a little bit of concern there,'' Yost said. ''You have to look at a closer's mentality. He has that. He's got the heart of a lion.''

Yost said Holland was surprised by the visit, and told his manager, ''I got this. I'm fine.''

TRAINER'S ROOM

Indians: Ace Corey Kluber has been cleared to start Thursday's series finale against Yordano Ventura after being sidelined with a right hamstring injury. Kluber did some infield drills before Tuesday's game and was cleared by Cleveland's medical staff. The reigning Cy Young Award winner has been out since Aug. 29.

UP NEXT

Royals: LHP Danny Duffy had his shortest outing this season against the Indians, who knocked him out with a four-run first inning on May 6. Duffy is allowing lefties to hit just .132 against him in his last 10 starts.

Indians: RHP Danny Salazar will make his third start this season against the first-place Royals. He's 1-1 with a 5.54 ERA. In his last start, Salazar surpassed 175 strikeouts, the third Cleveland pitcher to reach that plateau in 2015.