Brazil and Tanzania signed an agreement to help develop biofuels in east Africa's second largest economy.