LONDON — A mural by the artist Banksy satirizing racism has been removed by the governing council of a British town where the anti-immigration U.K. Independence Party hopes to win its first parliamentary seat — after a complaint that the painting itself was “offensive and racist.”

The mural, in Clacton-on-Sea, showed a group of dark gray rock pigeons holding signs reading “Migrants not welcome,” “Go back to Africa” and “Keep off our worms,” all directed at a small, more exotic green bird, possibly a swallow, that appears to be cowering at some distance on the same wire.

Why the mural was interpreted as racist rather than satirical is unclear. The Tendring District Council said on Thursday that it had not known that the mural was by Banksy, an anonymous artist whose street art has sold for hundreds of thousands of dollars.

He has painted obviously political murals at locations like the separation barrier in the Israeli-occupied West Bank and the headquarters of Government Communications Headquarters, the British spy agency that monitors communications.