Inmate shot dead coming out of jail in Brazil