A learner shooter fired a shot from his rifle and his shoulder got injured in the process. What mistake did he commit?

We know that a gun recoils, i.e., move back after firing. To avoid injury to the shoulder the gun must be held tightly against the shoulder. The learner shooter might have not held it tightly against his shoulder and hence the gun must have injured his shoulder after firing.