General view of the debris of the Ukraine International Airlines, flight PS752, Boeing 737-800 plane that crashed after take-off from Iran's Imam Khomeini airport, on the outskirts of Tehran, Iran January 8, 2020 is seen in this screen grab obtained from a social media video via REUTERS

DUBAI (Reuters) - A Ukrainian aircraft which crashed earlier this week in Iran had flown close to a sensitive military site belonging to the elite Revolutionary Guards and was shot down unintentionally due to human error, the Iranian military said in a statement read on state TV on Saturday.

The responsible parties would be referred to a judicial department within the military and held accountable, the statement said.

All 176 people on board were killed in the crash. The Iranian military statement expressed condolences to the families of the victims.

The United States and Canada had said that the plane was shot down, a claim Iran had initially denied.