Frequency combs and temporal solitons in a coherently driven ring quantum cascade laser