The gunman , who was not identified , shot the victims - five boys , two girls and the female principal - with a .22-caliber pistol , police said , adding that about a dozen other people were injured as they tried to escape from the school .