Armed man in hospital after Sydney cop shooting