Iran links pact to Lebanon security