Carl Paladino said on Tuesday that he had not intended to send racist remarks about President and Michelle Obama, which were roundly denounced as viciously offensive, to a Buffalo newspaper for publication.

Mr. Paladino, a former candidate for governor of New York and a political ally of President-elect Donald J. Trump, said in a statement that he had meant to email his remarks to friends.

Instead, he said, he inadvertently sent them to Artvoice, a Buffalo weekly, which published them last week.

In the statement, Mr. Paladino, a western New York builder and a member of the Buffalo Board of Education, said that he would not heed calls for his resignation, “not when it’s time to help implement the real choice elements of Trump’s plan for education reform.”