Tips for future flight travelers: Either use Bikeflights.com (which provides insurance) or avoid put hard items (e.g. bike tools) in the bike travel bag.
Only the manufacturer or a competent frame repair person can tell you of it is safe. It does not look just cosmetic to me, but I have no qualification whatsoever.
However, this small damage is very likely to be well repairable. Just ask a competent bikeshop or a dedicated carbon frame repair workshop.