Iranian authorities have reversed a decision to reopen the Strait of Hormuz and reports say two Indian-flagged ships came under fire in the waterway.