Possible mechanism of superconductivity in metal-semiconductor eutectic alloys