A man with alleged ties to Islamic militants was shot dead in the Philippines after he threatened to set off a backpack bomb in a stand-off with local police, an official said on Saturday.