Flathead County Sheriff Brian Heino said the men, who were booked into the facility on Jan. 30, were detained by Border Patrol agents. They were transferred out of the jail on Jan. 31, he said.