The husband of the mayor of a small Oklahoma town has apologized for posing as a Ku Klux Klan member for Halloween.