The passengers were armed and intended to "carry out an infiltration for terrorist purposes", the Cuban government said.