An American freelance journalist who was detained in Lebanon on suspicion of broadcasting live footage of protests to an Israeli news outlet has been released, the journalist said Tuesday.

Nicholas Frakes, 24, told The Associated Press he was released from nearly two days in detention after an official Lebanese investigation showed he was innocent.

Security forces detained Frakes on Sunday night on suspicion of broadcasting live footage to the Israeli Haaretz. Lebanon and Israel are at a state of war and ban their citizens from visiting or contacting the other country and any contact is considered illegal.

“I’m glad that I have been released from custody and extremely grateful for the love and support” from colleagues around the Middle East, said Frakes, who has been living in Lebanon since December 2018. Frakes is originally from Alta Loma, California.

Frakes said in a telephone interview that during his 42-hour detention he was held in solitary confinement in a small room after his telephone, camera and notebook were confiscated. He got all his belongings back upon his release.

“They were kind to me. If I needed a cigarette or some food or water they would get it to me but at the same time I was stuck in a room that had a window but it was blocked so I couldn’t see if it was night or day,” he said. “It was kind of a mixed experience to be fair.”

He added that he was allowed to call his girlfriend and also received a call from an American diplomat.

In a statement released Monday, Lebanon’s State Security department said Frakes was at the scene of the protest near the parliament building, a location from which someone was broadcasting live to the Israeli paper. State Prosecutor Ghassan Oueidat referred him to Military Intelligence for questioning and investigation, the department said.

Haaretz denied any connection to Frakes, saying the video streaming from the protests on its Facebook page was a feed from an international news agency.

Frakes ‘ arrest came amid intense riots over the weekend near parliament building that left hundreds of people injured. Lebanon has been witnessing three months of protests against the country’s political elite that demonstrators blame for decades of corruption and mismanagement.

The area outside Parliament was packed with journalists, many of them correspondents for international news agencies. International coverage of the three-month old protests in Lebanon has picked up in the past two days as the violence worsened.