Gas leak at Karnataka pharma plant kills 3