Indonesian anti-terror police on Wednesday shot dead three suspected terrorists after a seven-hour gunfight on the outskirts of Bandung city in West Java.

The gun battle ensued after the suspects refused to surrender and started shooting at the officers and hurling explosives, reports AFP.

“The police had tried to persuade the suspects to surrender, but they fought back,” deputy chief of West Java Police Ryco Amelza Dahniel said. “They didn’t only shoot but also threw pipe bombs at the police.”

Three men were shot dead while another was arrested in the raid, police said. The suspects are believed to be involved with a terror group which had plotted to bomb the Myanmar embassy in Jakarta, deputy national police chief Nanan Soekarna said.

Two men had been detained last week on suspicion of planning the bomb attack on the embassy, leading to the raid on Wednesday.

Anger has been growing in Indonesia, the most populous Muslim-majority country, following violence in Myanmar that has left many minority Muslims dead and tens of thousands homeless.