Indonesian police exchanged gunfire with an attacker after a reported explosion in a government building in the city of Bandung, according to police and TV footage.

"We're currently in the government office. There was information from the people that there was bomb explosion,” West Java police spokesman Yusri Yunus told Reuters.

An exchange of gunfire could be heard on Indonesian TV footage filmed from outside the building in West Java.