Star Trek: The Original Series
Episode: TOS 010 - What Are Little Girls Made Of?

Andrea, a beautiful female android, was built by archaeologist Roger Korby. Korby used technology left behind on Exo III by an ancient civilization called "the Old Ones," who were destroyed by their own android creations. When Korby, who had himself assumed an android body, realized he had become more machine than man, he embraced Andrea and fired a phaser blast, killing them both.