"My information is that there are several injured and about eight dead after the shooter's rampage," Mayor Patrik Kuncar said in a live broadcast.
He quoted police as saying the attacker had killed himself after the shooting spree.
17:05 Indonesian Police Shoot Dead ISIS-Inspired Machete and Pipe Bomb Attacker
22:57 The Latest: Christie denies he knew about lane closures
08:23 IS militants attack Iraqi city of Kirkuk as Mosul offensive continues
06:06 Indonesian militant inspired by Islamic State had weapons, ammunition