A critical incident has been declared after a man was shot dead by police and a woman was stabbed in NSW.