A police officer has been taken to hospital after he was allegedly hit by a van following an alleged home invasion in Sydney’s inner west.