SAN DIEGO (AP) The Nevada Wolf Pack didn't flinch against No. 24 San Diego State and came away with an impressive victory.

Wide receiver Elijah Cooks threw a 50-yard pass on a trick play to set up Devonte Lee's go-ahead, 1-yard run with 10:31 to go and the Wolf Pack beat the Aztecs 17-13 Saturday night.

The Wolf Pack surprised the Aztecs' tough defense with a reverse, with running back Toa Taua flipping the ball to Cooks, who stopped and threw a strike to Brendan O'Leary-Orange at the SDSU 5. Three plays later, Lee burst into the end zone for a 17-10 lead.

Inconsistent this season, the Wolf Pack (6-4, 3-3 Mountain West) became bowl eligible and defeated the Aztecs for the second straight season. SDSU (7-2, 4-2) struggled in its first action since jumping into The Associated Press Top 25 two weeks ago. The Aztecs, whose four-game winning streak was snapped, still lead the West Division.

''It's hard to catch this team. It's hard to get them out of position,'' Nevada coach Jay Norvell said. ''It's hard to get behind them and so we just felt like we needed to make a play like that along the way to help get behind them. Fortunately we did.''

Cooks said he was nervous when the play call came in, ''but I told O.J., `Slow down and just go and I'm going to hit you.' He did that and it worked out perfectly.

''I played quarterback growing up. My whole goal coming up when I was a little kid was I wanted to throw at least one pass in college and I did that,'' Cooks added. ''I'm really hyped about that. That was fun.''

Redshirt freshman quarterback Carson Strong was impressed with Cooks' pass.

''That was a better pass than people think because he led him to the grass area where the defense wasn't at and it was a beautiful ball. Put a nice touch on it, let O.J. run under it, that was a really great throw.''

The Wolf Pack's go-ahead score came after SDSU converted on a daring fourth-down play that was nullified by a holding call. Coach Rocky Long went for it on fourth-and-1 from his 17 and Chase Jasmin converted, but Jacob Capra was called for holding, forcing the Aztecs to punt.

SDSU's Matt Araiza kicked a 44-yard field goal with 3:46 to go. The Aztecs got the ball back but the drive fizzled near midfield and they turned it over on downs with 1:25 to go.

Cooks also caught a 13-yard touchdown pass from Strong to give the Wolf Pack a 10-3 lead midway through the third quarter.

Strong, making his third straight start and seventh overall, led an impressive drive to open the second half. The drive was kept alive when Lee ran the wildcat for two yards on fourth-and-1 from the SDSU 10. After a false start, Strong found Cooks open in the end zone for the score. After a brief end zone celebration, the two ran off the field together.

The Aztecs countered with a long drive of their own to tie it on Chance Bell's 3-yard run.

Strong said the Wolf Pack ''just had absolute confidence we were going to win this game. We knew a lot of people had written us off, just basically thrown us in the trash for the rest of our season, but we never believed that.''

Long was disappointed with critical penalties.

''Way too many penalties. That's an undisciplined�football team and that's my fault. It's amazing, the penalties had a lot to do with us losing the game. They don't always, but obviously they had a huge impact on tonight's game. Most of the penalties put us in bad field position the whole night and we didn't overcome it.''

The teams played to a 3-3 halftime tie, with Brandon Talton kicking a 34-yard field goal for Nevada in the first quarter and SDSU's Araiza kicking a 21-yarder early in the second quarter.

THE TAKEAWAY

Nevada: Strong looked impressive at a position where there's been upheaval this season. He started the first three games before coach Jay Norvell tried Malik Henry and Cristian Solano before going back to Strong. Strong was coming off a 305-yard, two-touchdown performance in a 21-10 win against New Mexico.

San Diego State: The Aztecs continued to struggle to score points with their new spread offense. The Aztecs were driving inside the Nevada 15 late in the first half after Chase Jasmin leaped over the pile on fourth-and-1 for the first down. But Ryan Agnew threw an incompletion in the end zone and then was intercepted by Daniel Brown, who leaped for the pick at the 1 and returned it 22 yards.

''Obviously it's hard to win football games if we don't score, and our offense is having unbelievable struggles scoring,'' Long said. ''I don't have the answer or I'd fix it.''

POLL IMPLICATIONS

SDSU's stay in The Top 25 is likely to be short. The Aztecs jumped into the rankings at No. 25 after a close victory at UNLV two weeks ago and then moved up a spot despite being off last week.

UP NEXT

Nevada is off next weekend and visits Fresno State on Nov. 23.

San Diego State hosts Fresno State on Friday night in a game that will help decide the MWC West Division title.

---

More AP college football: http://apnews.com/tag/Collegefootball and http://www.twitter.com/AP-Top25

Copyright 2019 by STATS LLC and Associated Press. Any commercial use or distribution without the express written consent of STATS LLC and Associated Press is strictly prohibited.