Categorical central extensions and reciprocity laws