Also : take care for yourself. Someone having a panic attack can be extremely stressful. You don't know how to react, you might hurt the person in doing something too fast, or simply by making noise, etc. Mistakes happen.
But the person having a panic attack CAN'T take care of you ! Sometimes I see how people around me feel. I want to help them, feel like it's all my fault. But I can't, and don't realize it's not my fault.
If it's too hard for you, rest and take care for yourself. Try to breathe slowly, and know that panic attacks won't last forever.
It's only a moment. A hard one, but don't forget to take care for yourself too.