"execute by electricity," 1889, Amer.Eng., from
electro- (see
electric) +
(exe)cute; sense involving accidental death is first recorded 1909.
Electric chair is also first recorded 1889, which is when the first one was introduced in New York state as a humane alternative to hanging.