The mayor was indirectly elected by a vote of the municipal council.
In this context, the mayor's election is indirect because it involves a vote from the municipal council, rather than a direct popular vote.