Amid a massive manhunt for Tel Aviv shooter, intelligence agency was able to turn a grainy image from security footage into a clear picture that led agents to Ra’ad Hazem