BEIRUT — An Iraqi government official denied Wednesday that a woman detained in Lebanon was the wife of the leader of the Islamic State group, but identified her as a sister of a terror suspect held by Iraq, news agencies reported from Baghdad.

Iraq’s Interior Ministry spokesman, Saad Maan Ibrahim, told The Associated Press and the Reuters news agency that the woman who was detained by the Lebanese military is Saja Abdul Hamid al-Dulaimi, an Iraqi national who traveled to Syria before arriving in Lebanon.

Ibrahim told the news agencies she is the sister of Omar Abdul Hamid al-Dulaimi, who is being held in Iraq as a terror suspect. He said Islamic State leader Abu Bakr al-Baghdadi has two wives, but neither is named Saja al-Dulaimi.

The comments came a day after Lebanese officials said the detained woman was a wife of Baghdadi, an Iraqi whose real name is Ibrahim al-Samarrai.

On Wednesday, a senior Lebanese military official told the AP that the woman said she was Baghdadi’s wife during her interrogation. He spoke on condition of anonymity because he was not authorized to make public statements to the media.

In a separate statement Tuesday, a Lebanese intelligence official said the woman was detained last week with her 9-year-old daughter – both carrying false identity papers – at the Madfoun checkpoint in northern Lebanon. He said another woman was also detained along with her.

Other media reports, including from the AP, identified the child as a boy. The reason for the discrepancy was not immediately clear.

They were being held at a Defense Ministry compound on the outskirts of Beirut, said the official, who spoke on the condition of anonymity, citing a lack of authority to discuss the issue on the record.

The second woman is of Chechen origin, said a Lebanese military official. The official, who also spoke on the condition of anonymity, declined to give her identity or the name of her husband.

The AP, however, quoted the military official as saying the woman was the wife of Anas Sharkas, who is also known as Abu Ali al-Shishani, a senior figure with Jabhat al-Nusra, or al-Nusra Front, al-Qaida’s affiliate in Syria.

It remains uncertain why the detainees came to Lebanon, where the Islamic State is opposed by both the country’s Western-allied military and the powerful Iranian-backed Hezbollah militia.