Ciftci said 13 people were wounded, with six in critical condition.
The motive of Wednesday’s attack is not yet known and an investigation has been launched.
Turkish media reported that the attacker, believed to be a teenager, entered two classrooms and had five guns and seven magazines with him, which Unluer alleged belonged to his ex-police officer father.
“The sound of gunfire was very intense,” a reporter for Turkish broadcaster NTV said, adding that there was “panic in front of the school”.
Footage from the scene showed crowds of people, some filming on their mobile phones, and ambulances driving away.