At an outdoor Mass far from the capital, the pontiff celebrated the Catholic heritage of one of South America’s most secular countries