Brazil’s environment chief resigns over controversial Amazon dam