An Australian cricket star has accused the prime minister of double standards when it comes to condemning Islamophobic attacks.