A man was arrested after he barricaded himself while brandishing a knife, according to the Sacramento Police Department.