An improvised explosive was thrown on Monday night on the roof of the gasoline station in Tacurong city on Mindanao island, which has been plagued by a decades-old Muslim insurgency.
Two soldiers, three policemen and two civilians were wounded when a second blast went off minutes later as security forces were about to cordon off the area, said regional police spokesman Superintendent Romeo Galgo.
Two suspects have been arrested but their identities and the motive for the attack were still under investigation, Galgo added.
"We cannot conclude yet that this is an act of terrorism. We are looking at all angles as there are threat groups in surrounding areas," Galgo told AFP, referring to Muslim rebels in the strife-torn province of Maguindanao.
Nearby towns are also home to communist rebels waging one of Asia's longest insurgencies and the incident could have been linked to extortion, Galgo added.
Mindanao is the ancestral homeland of the Muslim minority in the largely Catholic Philippines.
The Moro Islamic Liberation Front, the largest Muslim rebel organisation, is in peace talks with the government but other extremist gangs that have pledged allegiance to the Islamic State group routinely carry out bombings and kidnappings.
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed.)
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.