We've seen a couple stories of this exact same thing happening. Its usually something up in the sky like cooper mentioned like a bird. They are their natural predators so it's expected to freak them out, especially if they are not used to being outside.
Unfortunately, how long it takes them to get over their scare is really dragon dependent. They all react differently. Hopefully yours gets over it quickly
-Brandon