Military leaders who had taken control of the West African island nation of Sao Tome and Principe--which expects to begin receiving revenues from offshore oil drilling next year--agreed late Wednesday to hand power back to the country's civilian president in return for a promise to hold fresh elections.