The Raiders extended their lead to 3-0 in the bottom of the second on Joel Buchenauer's RBI bunt sacrifice and an RBI double by Jon Slack.
Kansas State (17-12, 4-3) got on the board in the top of the third inning when Osmar Castillo's fielder's choice scored Brett Williams from third.
The Wildcats tied the score in the top of the fourth after scoring two runs on four consecutive hits. They later took a 4-3 lead in the top of the fifth on an RBI single by Ty Soto.
Gabe Luttrell gave Kansas State a 5-3 lead in the top of the eighth with an RBI single to left field that plated Tim Doty from second.
Senior shortstop Gera Alvarez tied the score and extended his current hitting streak to 19 games with a two-run home run in the bottom of the eighth inning.
Senior designated hitter Nick Blankenship led off the inning with a single to left field to set up Alvarez's blast.
RBI singles by Kansas State's Brandon Taylor and Pat Maloney in the 15th inning proved to be the difference.
Steve Rowe suffered the loss for Tech, despite pitching 6 1/3 relief innings and allowing only two earned runs on 10 hits with nine strikeouts.
Mitch Walter earned the win with eight innings of two-hit relief and seven strikeouts.
Tech and Kansas State will play the second game of the series at 2 p.m. tomorrow afternoon at Dan Law Field.