Attacker previously dismissed from job
"The incident was not a terrorist attack. The attacker's name was Veysi Erin. He worked as a psychologist at TUIK," the Hurriyet daily website quoted Eyup Tepe as saying.
A TUIK official confirmed to Reuters that seven people had died and one person had been slightly wounded, but provided no further details.
TUIK's local manager was among those killed in the attack, Hurriyet said on its website.
Political tensions are running high in Turkey this month ahead of local elections on March 30 and amid a corruption scandal dogging Prime Minister Tayyip Erdogan's government.