President Joe Biden accused a reporter of failing to “play by the rules” when asked a question about the war between Israel and Hamas during a press conference on Thursday.

In a clip that surfaced on social media, a reporter could be heard asking the president about “what more, if anything, the U.S. could do to drive toward a peace agreement.”

“Thank you, Mr. President I have a question for President Zelenskyy shortly, but if you don’t mind I’d like to ask you about your discussions on the situation in Gaza here at the summit,” the reporter asked, adding, “You were asked a short time about it during the skydiving demonstration, can you give us your assessment of Hamas’s a response? And do you believe they are trying to work towards a deal or is this response working against a deal? And what is your message to allies including those here at the G-7 about what more, if anything, the U.S. could do to drive towards the peace agreement?”

Seemingly frustrated with the question, Biden stated, “I wish you guys would play by the — by the rules a little bit.”

In an apparent readiness to discuss the war between Ukraine and Russia and what he wants to be done in support of Ukraine going forward, Biden said, “I’m here to talk about a critical situation in Ukraine, and you asked me another subject. How ’bout — I’ll be happy to answer in detail later.”

“But the bottom line is — we made and agreement, I’ve laid out an approach that has been endorsed by the U.N. Security Council, by the G-7, by the Israelis, and — and the biggest hang-up so far is Hamas refusing to sign on even though they have something … similar,” he continued.

Going further, the president added, “Whether [unintelligible] comes to fruition remains to be seen, we’re going to continue to push. I don’t have a final answer for you.”

The White House Correspondents’ Association has pushed back against Biden’s hostility toward the reporter in a statement defending the independence of the press to ask questions.

“The White House Correspondents’ Association believes it is in the public interest to make clear that at a presidential press conference, at home or abroad, there are no preconditions regarding question topics. While the White House does determine the number of reporters the president will recognize, it is up to professional journalists to decide what to ask,” the statement read.

“Any leader may prefer that reporters ask only one question or ask only about a topic that is of most interest to the president or another world leader, but a free press functions independently. WHCA would welcome more opportunities to pose a range of questions to the president in a press conference setting,” he added.