Former Navy SEAL Tim Sheehy has beaten three-term Democrat Sen. Jon Tester in Montana, flipping a key race as Republicans are set to take back control of the Senate, the Associated Press projects.