Devin Leary threw for two touchdowns and No. 23 North Carolina State held off Louisiana Tech 34-27 on Saturday night.

Louisiana Tech picked up five first downs on its last possession, reaching the N.C. State 22-yard line before Jakeen Harris’ interception in the end zone on the game’s final play.

That allowed N.C. State to build on an upset of Clemson from a week earlier and improve to 4-1 for the second year in a row.

"We did enough to win," N.C. State coach Dave Doeren said. "It’s great, I guess, to not play great and to win a football game."

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

Leary was 22 for 36 for 251 yards. Running backs Ricky Person (90 yards) and Zonovan Knight (85) each ran for a touchdown.

Louisiana Tech quarterback Austin Kendall finished 25 for 40 for 328 yards with three touchdowns and two interceptions.

"There’s not a moral victory in being close," Louisiana Tech coach Skip Holtz said. "We came here to win."

Doeren said regaining its focus after the victory over Clemson was difficult for the Wolfpack leading in their final non-league game.

"That was a monumental task," Doeren said. "More than people probably understand."

Louisiana Tech had two fourth-quarter touchdown drives of 65 or more yards. Then the Bulldogs moved 67 yards on the last drive.

"We probably shouldn’t have been in that moment," N.C. State linebacker Isaiah Moore said. "We didn’t play well on the defensive side of the ball in the second half."

Person’s tackle-dodging, 24-yard touchdown run in the third quarter helped N.C. State break open a tight game.

Kendall’s 23-yard strike to Bub Means with 12:10 left allowed the Bulldogs (2-3) to pull within 27-20.

N.C. State followed with a six-play, 72-yard drive that concluded with Knight’s 4-yard scoring run.

Kendall struck again when Griffin Herbert plowed into the end zone to complete a 14-yard pass play as Louisiana Tech made it 34-27 with 4:43 to play.

THE TAKEAWAY

Louisiana Tech: The Bulldogs’ first two losses of the season came by a combined three points and they were in another close defeat this time. Louisiana Tech is 4-48 all-time against Top 25 opponents.

N.C. State: The Wolfpack moved to 4-0 in home games this year, but the last two victories have come down to needing a defensive stop on the final play. Last week, it was a double-overtime upset of Clemson.

GRIND IT OUT

N.C. State gained 130 of its 167 rushing yards in the second half.

Person and Knight are shaping up as a stellar combination in the N.C. State backfield.

"It’s great having (Knight) alongside me, just with the work that he’s put in," Person said. "He’s a great, great back. I love that man."

BAD TIMING

Louisiana Tech had to use backup quarterback Aaron Allen for a play in the final minute after Kendall was shaken up at the end of a fourth-down scramble for a first down. A snag developed for the Bulldogs when the ball was blown into play and it took about 20 seconds before the ball was snapped.

"He didn’t realize the play clock was running," Holtz said. "Then we had very little time left after that."

Because of that, the Bulldogs had time for just two more plays.

TAKE A BREAK

The Wolfpack will have a steady diet of Atlantic Coast Conference games for the rest of the regular season. But N.C. State has a weekend off before its next game.

"We need a bye right now," Doeren said. "We’re definitely ready for one, physically and mentally."

POLL IMPLICATIONS

N.C. State is likely to hold steady, especially until it wins a road game and it will have two such assignments later this month.

UP NEXT

Louisiana Tech: Oct. 16 at UTEP

N.C. State: Oct. 16 at Boston College