LONDON — A BBC radio personality was fired on Thursday after tweeting an image of a couple holding hands with a suited chimpanzee alongside the caption: “Royal Baby leaves hospital.”

The radio host, Danny Baker, who had an anarchic Saturday morning call-in show on the British broadcaster’s national news and sports station, Radio 5 Live, posted the tweet Wednesday evening, hours after the Duke and Duchess of Sussex introduced their newborn son to the world.

Mr. Baker deleted his tweet within hours, but it circulated widely online and drew outrage for its racist imagery. British social media users called for the BBC to fire him.

He announced his firing with another tweet Thursday morning. Radio 5 Live confirmed the news in a statement, calling Mr. Baker’s initial tweet a “serious error of judgment” that “goes against the values we as a station aim to embody.”