Brazil’s energy and mines ministry will be led by a former submarine commander who is currently in charge of the navy’s nuclear division.