Russia launched an investigation after an army unit accidentally fired mortar shells into the grounds of a boarding school in the troubled North Caucasus region of Dagestan.