he was discovered , at the conclusion of a half-hour search involving everyone in the street , behind the public livery stable , happily engaged in throwing horse dung at passing carriages and wagons .