An ever-present misconception of MacBooks (and other Apple products) is that they're not susceptible to viruses, which is ...
If your iPad is frozen to the point that you can't reboot it the normal way, perform a forced restart. Charge the battery.