An Australian MP is in a critical condition in hospital after being struck by a car outside her electoral office, with the country's prime minister confirming she was 'attacked'.