Havana’s Interior Ministry said people arrested after an exchange of gunfire with the boat claimed they “intended to carry out an infiltration for the purposes of terrorism.”