A man was detained after he barricaded himself inside a home in northwest Bexar County, according to the sheriff’s office.