Searching for a single gene does not seem to be a good approach. You should check the entire metabolic pathway (http://www.genome.jp/dbget-bin/www_bget?C00246) and BLAST each protein. A better approach would be to classify the bacterium and phylogenetically relate it to others bacteria which are known to produce the compound. I hope it helps.