A late own goal handed Bahrain their first-ever win over former Asian champions Australia.
Bahrain had cut ties with Iran in 2016, but relations improved following the Saudi-Iranian rapprochement last year.
Bahraini officials have previously said that Manama is seeking improved relations with Tehran after years of tensions.
Arab leaders accuse Israel of obstructing Gaza ceasefire efforts and demand an end to its war on Palestinian territory.