An undocumented immigrant who was arrested at a state-run shelter in Revere last month allegedly with an AR-15 and $1 million worth of fentanyl was not officially part of the emergency assistance program but was staying with someone who was, Gov. Maura Healey said Tuesday. A day after ordering an…