ALMA view of a massive spheroid progenitor: a compact rotating core of molecular gas in an AGN host at z=2.226