First, I would call the vet in your area, then, I would try to keep him as calm as possible and not make him breathe any faster than he already is to help him get the most oxygen possible in his lungs, what ever you do, stay calm, getting scared will only make him even more scared. Your vet should know what to do from there. I hope I helped,
-ljmecham2001