Updated

BOISE, Idaho (AP) On the strength of Austin Apodoca's big-play strikes and Jhurell Pressley's 132-yard rushing performance, New Mexico stunned Boise State 31-24 Saturday night and ended the Broncos' 18-game home winning streak.

The Lobos (6-4, 4-2) earned their first win in seven tries against Boise State, which had taken over the second-longest active home winning streak in FBS after Baylor lost earlier Saturday.

Boise State (7-3, 4-2), clad in all black uniforms for a stadium ''black out'', squandered its chance to maintain control of its destiny in the Mountain Division. The Broncos are still alive in the division race but now need some help.

Meanwhile, New Mexico, which was picked to finish last in the division, has a surprising opportunity to play for the conference title if it wins its final two games, both at home, against Colorado State and Air Force.

With the score tied at 17, New Mexico scored two touchdowns in a span of 1:35 to help the Lobos escape win the win.

Moments after Boise State tied the game on Brett Rypien's 18-yard screen pass to Jeremy McNichols, Apodoca hit Delane Hart-Johnson on an 81-yard scoring pass on second-and-17. Hart-Johnson was dragged down at the 1, and then Richard McQuarley dove into the end zone on the next play to give New Mexico a 24-17 lead with 13:44 remaining.

On Boise State's next possession, Cranston Jones intercepted Rypien's pass after it deflected off Chaz Anderson's hands at the Broncos 30.

Three plays later, Teriyon Gipson scored on a four-yard run as New Mexico led 31-17 with 12:09 left in the game.

Boise State ran 114 offensive plays to New Mexico's 53. The Broncos drove inside the Lobos 30 three times after falling behind 31-17, finally scoring on Rypien's 28-yard pass to Brett Roh with 2:16 remaining.

New Mexico recovered an onside kick attempt, but couldn't run out the clock before giving Boise State one final chance.

On the final play of the game, Boise State used several laterals and Markel Byrd stopped Austin Cottrell on the 3 to secure the victory for New Mexico.

Rypien set a career-high in passing with 40-of-74 for 503 yards, two touchdowns and three interceptions. Thomas Sperbeck set a single-game school record with 20 receptions for 281 yards. McNichols rushed for 134 yards on 25 carries.

New Mexico's Apodoca was 8-of-12 passing for 172 yards and one interception.