Never force someone having a panic attack to do anything.
The person must agree. You can explain (slowly), and lead the person to a calm place. If the person can wait a bit before the panic rise to high heights, it gives you a bit of time.
Else, too late, but I know that in my case, if you force me to go somewhere, it will only worsen everything.
In the same regard, never hug or touch someone having a panic attack without asking first.
A hug can seem reconforting to your eyes. It might be pure terror to be touched for someone panicking. It is in my case. Even from the person I love the most.
Ask. Wait. Ask again if needed. Wait.