Yemen has executed an Islamic militant convicted of killing three American medical workers in 2002 .