The most common cause of roof shingle blow offs, is improper nailing, usually caused by nailing the shingle to high as seen in the picture. The nails belong where the blue colored circles are.
Over Driven Nails
The next most common cause of roof shingle blow offs, is overdriven nails, which occurs when the pressure is set to high for the nail guns.