A former FBI director has been interviewed over a social media post interpreted by US officials as a threat against the US president.