U.S. photographer released after two weeks in custody