An Australian MP has been attacked outside her office, the country's prime minister Anthony Albanese has said.