Drugmaker Eli Lilly said Tuesday it has replaced its chief financial officer after an investigation found that he’d had inappropriate communications with company employees.