The mayor of the capital of the Russian region of North Ossetia has been assassinated by unknown gunmen, officials say.