A residence can have a beehive. There are currently no zoning regulations for a beehive. Beehive structures fit into the animal shelters language in 90.08. Farm and Other Small Domestic Animals. Therefore, they need a minimum set-back of 100-feet to the nearest residence, school, business, etc. You would probably want to discuss it with your neighbors first, and if you are renting, get your landlord's permission.
If you have any questions about size, set-backs or zoning regarding an animal shelter, please email Ben Boike, Assistant Community Development Director / City Planner or call him at 651-552-4134.