Man accused of resisting officer, carrying weapon