A police officer is expected to undergo surgery after he was accidentally shot during an arrest attempt in Sydney’s Inner West overnight