The number of people killed in a shooting attack on a military parade in southwestern Iran on Saturday has risen to 24, the official state news agency IRNA said.