The concerns about possible ties between the owners of Smartmatic and the Chavez government have been well known to United States foreign-policy officials since before the 2004 recall election in which Mr. Chavez , a strong ally of President Fidel Castro of Cuba , won by an official margin of nearly 20 percent .