Labour's Jonathan Ashworth has apologised to his party after criticising Jeremy Corbyn in a secret recording by his Tory activist friend.
In a recording leaked to Tory-supporting website Guido Fawkes, Mr Ashworth is heard saying he did not believe Labour would win the election.
Mr Ashworth has insisted he was "joshing around" in the conversation.
Mr Corbyn said it was "not the sort of thing I would do", but claimed the story was "irrelevant".
The Labour leader added that Mr Ashworth had said it "was all about reverse psychology banter - as in football".
He suggested that shadow health secretary has "odd sense of humour" but added that he "makes jokes the whole time".
He also accused the Guido Fawkes website of "just trying to deflect away from the Tories' mess of the National Health Service" and insisted that the shadow health secretary had his "full support".
The conversation appears to have been recorded over a week ago and Mr Ashworth said: "The reason this has come out today is because the Tories know the crisis in the NHS is ruining their campaign and we've got babies - babies - on the front page of the Daily Mirror unable to get a bed."
Mr Ashworth named the friend he was speaking to as former local Conservative Association chairman, Greig Baker, and he did not deny that he made the remarks.
Meanwhile, in an interview with BBC Breakfast, Mr Corbyn dismissed claims that he was a "problem on the doorstep" for Labour activists, saying it was "not a presidential election".
- Latest on campaigning as election day nears
In the recording, Mr Ashworth appears to refer to an unsuccessful plot to oust Mr Corbyn, instigated by some of his MPs in the aftermath of the EU referendum.
"People like me were internally saying 'this isn't the right moment' but I got kind of ignored," Mr Ashworth is recorded as saying.
On Labour's election chances, Mr Ashworth is heard saying: "I've been going round these national places, it's dire for Labour… it's dire.
"I'm helping colleagues, banging on about the NHS for them but it's awful for them, and it's the combination of Corbyn and Brexit… outside of the city seats…it's abysmal out there…they can't stand Corbyn and they think Labour's blocked Brexit."
On the recording, Mr Ashworth is asked: If Mr Corbyn "got in would he be as bad as I suspect?"
"I don't know, on the security stuff, I worked in No 10, I think the machine will pretty quickly move to safeguard security, I mean the civil service machine. But it's not going to happen. I cannot see it happening."
A Twitter account appearing to belong to Mr Baker later defended leaking the recording.
He tweeted: "If someone tells you about a threat to national security - that they say could only be avoided by asking civil servants to act unconstitutionally - there's a duty to tell people about it."
'Joshing'
Speaking to the Victoria Derbyshire programme, Mr Ashworth said: "Of course it makes me look like a right plonker, but it's not what I mean when I'm winding up a friend, trying to sort of, pull his leg a bit."
He said he was "having a bit of banter" with his friend "because he was saying 'oh, the Tories are going to lose' and I was, like saying, 'no you're going to be fine', joshing as old friends do.
"And he's only gone and leaked it to a website - selectively leaked it - and I thought he was a friend, Greig Baker, but obviously he's not."
When asked if he believed, as the recording suggested, that Mr Corbyn was a threat to the UK's national security, Mr Ashworth replied: "Of course I don't."
Speaking to BBC Politics Live, he said: "I look like an idiot as a result of doing it... I apologise to Labour Party members."
Conservative Party leader Boris Johnson said Mr Ashworth was "saying what hundreds of Labour candidates and millions of voters are thinking", adding that Mr Corbyn was "unfit to be PM because he is blocking Brexit".
Mr Ashworth's remarks were "an honest and truly devastating assessment" of Mr Corbyn's leadership "by one of his most trusted election lieutenants", Conservative Party chairman James Cleverly said.
Earlier, in an interview with BBC Breakfast, Mr Corbyn was challenged on his leadership credentials amid reports that some candidates are finding voters do not want to support him personally.
"It's not a presidential election," he said.
"It is a Parliamentary election in which we elect members of Parliament. I'm the leader of the Labour Party and I'm very proud to have that position."
When asked about some candidates not including his name in their leaflets, he said he was "proud" of his party's manifesto and "my job is to deliver it".
On the case of a sick four-year-old boy who was photographed on the floor of Leeds General Infirmary, Mr Corbyn said it was an example of what was happening in the NHS.
"It is obviously awful for that little boy and the family, the way they were treated," he said.
"But it does say something about our NHS when this happened, and then all research shows there's a very large number of hospitals where patients are at risk because of staff shortages, because of a lack of equipment, because of poor maintenance of hospital buildings."
He insisted his spending plans "are completely credible" and will "give sufficient resources to the NHS".
'Honest broker'
In the interview, Mr Corbyn was also challenged on his party's Brexit policy and his own position.
Labour wants to negotiate a new deal with the EU and then put it to the public as a "credible Leave option" alongside the option of Remain in another referendum - which the Labour leader would remain neutral in.
"I will be the honest broker," Mr Corbyn said.
The Conservatives argue that Labour would bring further "dither and delay" to Brexit.