The leader of a Melbourne mosque allegedly connected to a pilot accused of an attempted plane hijacking has taken to social media to say "the righteous will always be attacked".