Former Tanzania rural energy agency employee loses appeal in court