PROVO, Utah (AP) -- Amy Beggin couldn't get a shot to score for the first 39 minutes.
In the final 30 seconds, she couldn't miss.
Beggin made six free throws in the last 27.7 seconds to help No. 25 New Mexico edge BYU 61-57 on Saturday in a game of Mountain West Conference unbeatens.
"I love to be the one who shoots those free throws," said Beggin, who is making 90 percent from the line this season. "My time eventually came at the end and I knocked them down."
The Lobos snapped the Cougars' 10-game winning streak with the victory.
Beggin finished with 10 points, six below her season average. She struggled from the field, making just 2-of-8 shots and scoring four points before sinking all six of her free-throw attempts down the stretch for New Mexico (14-2, 3-0).
"Amy's not a great, great scorer," Lobo coach Don Flanagan said. "She scores in the framework of the offense. She figured out a way to help us at the end."
Sophomore point guard Jazmine Foreman led BYU (12-3, 2-1) with 16 points, five rebounds and seven assists.
Flanagan was impressed by the Cougar guard.
"She the best point guard I've seen in a while," he said.
Foreman made a 3-pointer to BYU a 52-50 lead with 4:05 to play, but the Cougars missed their next six shots.
Amanda Adamson, Amanda Best and Angela Hartill each scored 11 points for New Mexico. Jessica Kielpinski came off the bench to score nine points for the Lobos.
Hartill hit a layup to tie the game at 52 and Adamson banked in a short jumper to take the lead.
"Amanda Best might have played her best game," Flanagan said. "She rebounded well, defended well and scored, and I thought that took some of the pressure off Beggin."
Foreman, Mindy Nielson and Shawnee Slade helped defend Beggin most of the game before Foreman fouled out in the final minute, sending Beggin to the line with 27.7 seconds to play.
"Our game plan against Beggin was to make shots difficult for her," Foreman said. "We did a pretty good job, honestly, but I can't take myself out of games with fouls."
Beggin also had five rebounds and five assists.
"They really try to face guard me and get around screens," Beggin said. "I was just trying to run the offense and get other people the ball."
Cassie King added 10 points and seven rebounds for BYU.
The Lobos went to the free-throw line 31 times. BYU only shot nine free throws and made just four.
"We should have shot more free throws in this game," Cougar coach Jeff Judkins said. "When we get to the free-throw line, we need to make them."
Only Utah and New Mexico remain unbeaten in the MWC.
"It would have been disappointing to play this well and lose in their building," Flanagan said.
(Copyright 2009 by The Associated Press. All Rights Reserved.)