The other offender was arrested inside the bar, where the firearm was also recovered by police.
When police arrived the man was being held by bar security and patrons. People could be heard telling the alleged offender that this was "their" bar and that no one would be robbing it while they were there.
Both men and at least one of the patrons suffered minor injuries during the struggle.
"We would firmly discourage members of the public from putting themselves at risk by tackling offenders, particularly when they are armed, but that doesn't take away from the fact that these patrons were incredibly courageous and they should be proud that they stood up for their community," said Inspector Sandra Venables.
Both men will appear in Whakatane District Court later today on charges of assault with intent to rob.
- nzherald.co.nz and The Daily Post