The United States carried out a secret operation in Yemen that targeted, but failed to kill, an Iranian military official last week, two U.S. officials told Reuters on Friday.