Fars, a semiofficial news agency, said eight people had been killed in the attack and dozens wounded.