I would think you would be better isolating them with a DPDT relay or, if you haven't purchased it yet, buy a DPDT magnetic gate sensor and run 4 conductors.
OR
Maybe if your CCTV system has outputs run the gate to the CCTV and the output to the Elk. You still may need a relay, though. It depends on the type of inputs and outputs on the CCTV system as mentioned above.