BAGHDAD (AFP) - A bomb fell from an Iraqi Sukhoi warplane and exploded in eastern Baghdad on Monday because of a "technical problem", killing at least eight people and wounding 17, security and medical officials said.

"One of the bombs became stuck because of a technical problem, and during its (the aircraft's) return to base it fell on three houses in Baghdad Jadida," security spokesman Brigadier-General Saad Maan said in a statement.

The pilot tried six times to drop the bomb, which became stuck while he was carrying out strikes against the Islamic State in Iraq and Syria (ISIS), but was unable to dislodge it "mechanically or manually", the Defence Ministry said in a statement.

But the bomb came loose as the plane overflew Baghdad to land at its base, the ministry said.

The governor of Baghdad province Ali al-Tamimi called for the Rasheed air base, where the plane was bound, to be moved to a non-residential area.

Mr Tamimi said he contacted the air force and was told the plane was returning from the Haditha area in Anbar province, which is surrounded by ISIS.

The explosion ripped through small houses in Baghdad Jadida, tearing down walls, smashing roofs and leaving bricks and other rubble piled in the street.

"Our house was destroyed," said Mr Ali Jassem, a 27-year-old Interior Ministry employee. Mr Jassem said that if an accidental bombing can happen in an area where there is no fighting, "God knows the extent of the events happening" in combat zones.

The jet was coming back from a bombing run when the accident occurred, Brig-Gen Maan said.

Officials said that the blast also wounded at least 17 people.

Iraq received Sukhoi Su-25 jets from Russia and Iran last year as it sought to bolster its fledgling air force to combat the Islamic State in Iraq and Syria, which overran large parts of the country.

The Su-25s are robust aircraft designed for ground attack missions, but Iraq's Sukhoi fleet is made up of ageing planes that have seen heavy use as Baghdad's forces battle to push the militants back.

The United States agreed to sell Iraq 36 F-16 warplanes, but none have been delivered so far. The first batch of the jets has instead been sent to Arizona, where Iraqi F-16 pilots are training.

One of the pilots, Brigadier Rasid Mohammed Sadiq, was killed in a crash during an aerial refuelling exercise at the end of June.