Formation and highly directional output of long-lived resonances in photonic comblike structures