Two men have been charged after police uncovered an alleged Islamic State-inspired plot to attack several targets including police stations, consulates and churches in Sydney’s central business district.

Federal and New South Wales counter-terrorism police raided six properties in Sydney’s west on Tuesday morning and arrested three Sydney men aged 20, 23 and 30.

Authorities say the younger men were members of Isis.

An Australian federal police spokesman the 23-year-old was due in court on Wednesday after he was charged with being a member of a terror organisation.

The 20-year-old man is expected to be charged with being a member of a terrorist organisation, preparing for a terrorist act and preparing to enter a foreign country for the purpose of engaging in hostile activities.

The 30-year-old was charged with obtaining a financial benefit by deception and granted police bail before his matter goes to court later in July. He has not been charged with terrorism offences.

The federal police assistant commissioner Ian McCartney said the plot bad been in the “early stages” of planning and targeted police stations, defence establishments, embassies and consulates, councils, courts and churches.