How’s he doing now? My guess is that he probably has a little birdie concussion. If he’s upright, then probably the best thing is to let him sit there to rest and be still till his head clears. The ledge looks like a relatively safe place for him to sit - better than exposed on the ground.