Wash. girl critically injured after gun in backpack goes off