Danny Baker speaks to the media at his London home on Thursday, May 9, 2019. A BBC DJ has been fired after using a picture of a chimpanzee in a tweet about the royal baby born to Meghan the Duchess of Sussex and her husband Prince Harry. Danny Baker tweeted Thursday that he has been fired after posting an image of a couple holding hands with a chimpanzee dressed in clothes and the caption:

LONDON (AP) — A BBC DJ was fired Thursday after using a picture of a chimpanzee in a tweet about the royal baby born to Meghan the Duchess of Sussex and her husband Prince Harry.

Danny Baker, who had a weekly show on BBC Radio 5 Live, tweeted Thursday that he has been fired after posting an image of a couple holding hands with a chimpanzee dressed in clothes and the caption: "Royal baby leaves hospital."

The tweet came on Wednesday, the same day Harry and Meghan posed for photos with their first child, Archie Harrison Mountbatten-Windsor. The tweet was seen as a racist reference to baby Archie's heritage. His grandmother Doria Ragland is African American.

Baker, 61, said the posting had been meant as a gag, tweeting late Wednesday that it was "supposed to be (a) joke about royals vs circus animals in posh clothes but interpreted as about monkeys & race." The post has since been deleted.

"Enormous mistake, for sure. Grotesque. Anyway, here's to ya Archie, Sorry mate," he tweeted.

BBC Radio 5 Live controller Jonathan Wall said in an email to staff that Baker had shown poor judgment.

"This was a serious error of judgment and goes against the values we as a station aim to embody. Danny's a brilliant broadcaster but will no longer be presenting a weekly show with us," Wall said.

On Thursday, Baker insisted he is not racist and attacked the BBC for its handling of the situation. He said the call to fire him "was a masterclass of pompous faux-gravity."

When Harry was first dating Meghan, his office released a scathing letter in which he complained about sexist and racist coverage of Meghan, who at the time was starring in the TV show "Suits."

The flap over Baker's tweet came as Harry took a break from parental duties to travel to the Netherlands to promote the 2020 Invictus Games, an international competition he founded for injured service personnel and veterans.

Harry grinned and made funny faces for the cameras as he held up a tiny baby outfit given to him by Prince Margriet of the Netherlands.

Baby Archie was introduced to his great-grandparents, Queen Elizabeth II and Prince Philip, Wednesday.

In this image made available by SussexRoyal on Wednesday May 8, 2019, Britain's Prince Harry and Meghan, Duchess of Sussex, joined by her mother Doria Ragland, show their new son to Queen Elizabeth II and Prince Philip at Windsor Castle, Windsor, England. Prince Harry and Meghan have named their son Archie Harrison Mountbatten-Windsor. (Chris Allerton/SussexRoyal via AP)
FILE - In this May 13, 2013 file photo, Danny Baker poses for a photo in London. A BBC DJ has been fired after using a picture of a chimpanzee in a tweet about the royal baby born to Meghan the Duchess of Sussex and her husband Prince Harry.  Danny Baker tweeted Thursday, May 9, 2019 that he has been fired after posting an image of a couple holding hands with a chimpanzee dressed in clothes and the caption:
Britain's Prince Harry holds up an outfit for his newborn son, presented by Princess Margriet of the Netherlands, at the launch of the 2020 Invictus Games, in The Hague, Netherlands, Thursday, May 9, 2019. Prince Harry returned to his royal duties Thursday after the birth of his son Archie Harrison, to launch the countdown for the fifth Invictus Games sports competition for injured service personnel and veterans. (AP Photo/Peter Dejong)
Royal fans John Loughery, left and Terry Hutt pose with flags and banners, outside Windsor Castle, in Windsor, south England, Tuesday, May 7, 2019, a day after Prince Harry announced that his wife Meghan, Duchess of Sussex, had given birth to a boy. The as-yet-unnamed baby arrived less than a year after Prince Harry wed Meghan Markle in a spectacular televised event on the grounds of Windsor Castle that was watched the world over. (AP Photo/Alastair Grant)
People take pictures of the notice on an easel in the forecourt of Buckingham Palace, London, Tuesday, May 7, 2019, placed on Monday to formally announce the birth of a baby boy to Britain's Prince Harry and Meghan, Duchess of Sussex. The as-yet-unnamed baby arrived less than a year after Prince Harry wed Meghan Markle in a spectacular televised event on the grounds of Windsor Castle that was watched the world over. (AP Photo/Tim Ireland)
The Royal Regiment of Scotland band march by Windsor Castle, in Windsor, south England, Tuesday, May 7, 2019, a day after Prince Harry announced that his wife Meghan, Duchess of Sussex, had given birth to a boy. The as-yet-unnamed baby arrived less than a year after Prince Harry wed Meghan Markle in a spectacular televised event on the grounds of Windsor Castle that was watched the world over. (AP Photo/Alastair Grant)
Princess Margriet of the Netherlands presents Britain's Prince Harry with an outfit for his newborn son at the launch of the 2020 Invictus Games, in The Hague, Netherlands, Thursday, May 9, 2019. Prince Harry returned to his royal duties Thursday after the birth of his son Archie Harrison, to launch the countdown for the fifth Invictus Games sports competition for injured service personnel and veterans. (AP Photo/Peter Dejong)
Britain's Prince Harry attends the launch of the 2020 Invictus Games, in The Hague, Netherlands, Thursday, May 9, 2019. Prince Harry returned to his royal duties Thursday after the birth of his son Archie Harrison, to launch the countdown for the fifth Invictus Games sports competition for injured service personnel and veterans. (AP Photo/Peter Dejong)
Britain's Prince Harry holds an outfit for his newborn son presented by Princess Margriet of the Netherlands at the launch of the 2020 Invictus Games, in The Hague, Netherlands, Thursday, May 9, 2019. Prince Harry returned to his royal duties Thursday after the birth of his son Archie Harrison, to launch the countdown for the fifth Invictus Games sports competition for injured service personnel and veterans. (AP Photo/Peter Dejong)
Princess Margriet of the Netherlands presents Britain's Prince Harry with an outfit for his newborn son at the launch of the 2020 Invictus Games, in The Hague, Netherlands, Thursday, May 9, 2019. Prince Harry returned to his royal duties Thursday after the birth of his son Archie Harrison, to launch the countdown for the fifth Invictus Games sports competition for injured service personnel and veterans. (AP Photo/Peter Dejong)