2 Teens Inadvertently Walk Across US-Canada Border While Playing Pokemon Go The pair were apprehended by U.S. Border Patrol Agents in Montana.

 -- Pokemon Go nearly caused an international incident this week.

Two Canadian teenagers were apprehended by U.S. Border Patrol agents Thursday night after they inadvertently -- and illegally -- crossed the U.S.-Canada border while playing the location-based game on their phones, officials said.

The agents encountered the teens walking southbound from the Canadian province of Alberta, into Montana, while playing Pokemon Go, the Department of Homeland Security's U.S. Customs and Border Protection agency said in a statement.

Border Patrol agents quickly determined that the teens were unaware they had crossed the border, the statement added.

“Both juveniles were so captivated by their Pokemon Go games that they lost track of where they were," said the agency's public affairs officer, Michael Rappold. "They crossed the international border inadvertently, but agents were able to reunite them with their mother.”

Their mother, who was nearby on the Canadian side, was contacted by agents while the teens were being detained.

The teens were apprehended near Sweet Grass, Montana, which borders the town of Coutts, Alberta.