The man also threatened IRS and ICE agents, officials said.