Man taken into custody after he threatens officers