The man told police that he had been sitting in the hallway waiting to frighten the owner of a dog that had defecated in several places in the condominium building, police said. Police confiscated the shotgun and several other firearms before they arrested him.