Ricardo Martinelli was detained by United States marshals, raising the likelihood that he could be sent home to face charges of corruption and illegal spying.