A second-grade student was injured after accidentally shooting himself inside an elementary school classroom Wednesday morning, sparking a police investigation and sending classmates into lockdown.