Armed siege in NSW ends with man arrested