The incident allegedly happened at a pro-trans rights rally in Sydney.