The EU foreign policy chief has called for “maximum diplomacy” towards Iran while an Iranian diplomat has been jailed in an EU member state.