(CNN) A disgruntled former security guard shot one person and took more than 30 others hostage in a day-long siege at a shopping mall near the Philippines capital Manila before releasing them after an apology from his bosses.

Archie Paray shot and wounded a security guard after entering Virra Mall, in the Greenhills shopping complex, at around 10 a.m. Monday local time (9 p.m. Sunday ET), according to San Juan City Mayor Francis Zamora. The 32-year-old, shouting that he had a grenade, then took more than 30 shoppers and store workers hostage inside an administration office on the second floor.

Hostages walk out of the Virra Mall near Manila, Philippines after they were held by a sacked security guard in a day-long stand-off.

The security guard is in a stable condition, Zamora said.

Negotiations went on for hours as hundreds of police officers gathered outside the mall, including rescue teams and armed members of the Special Weapons and Tactics (SWAT) team. "We will do our very best to settle this issue peacefully," Zamora said. "We will exert all effort to ensure no one gets hurt in this situation."

Eyewitnesses said gunshots could be heard from the administration office, according to CNN affiliate CNN Philippines.

Read More