Brazil currency weakens after key official resigns