Sounds like an excellent way to lose your CCW permit. Solving crimes is what armed cops are permitted to do - not armed citizens who just happen to be nearby and are not personally threatened. But since he didn’t pull the trigger, they might let it slide. Would totally depend on the attitude of the cop on the scene.
Pish tosh — it’s a citizens arrest!