Summary:
To assign a specialist, go to the City Screen. Click on the "specialist slot" in the building where you want to assign the specialist. A citizen will be removed from working a tile and assigned to work in the building. If you click on the slot again, the citizen will be removed from the building and reassigned to work in the fields.
See the City section for more details on assigning citizens to work tiles and as specialists.