You've got this now, I know, and we all do things once and learn from them, so don't worry about it. But just to be clear, you should never shake bees out a long way (i.e. more than couple of hundred yards) from their original location, because otherwise there is a risk they go into someone else's hives, and if your bees have foul brood, or some other disease, or even a load of varroa ...... well, you get the picture.
There are other reasons not to do it, but this is the biggest one from a responsible-beekeeping of view.