Mr. Obama flew on Saturday to eastern Afghanistan , near Pakistan , to get a firsthand look at the region where American troops are feeling the brunt of increased attacks from militants infiltrating the border .