German police have detained three men suspected of involvement in an explosion that targeted an office of the Alternative for Germany (AfD) far-right party in the eastern state of Saxony.