An Australian senator who sparked outrage for claiming Muslim immigration caused the New Zealand mosque shootings has been hit on the head with an egg.