Flaks can fire at bombers but are not very effective against them; their weapons are anti-[very light] so only do 75% of their base damage versus bombers, which have light armour. They are more effective against fighters, which have very light armour, and do 133% base damage.
The best counter is fleets of fighters, which do anti-light damage (200% of base damage). You can also use corvettes, which have two banks (left and right) of anti-light weapons that can fire at strikecraft. If you can deplete the antimatter of the carriers and keep it depleted, this will stop the bombers coming back since they can't be manufactured (particularly so against Vasari bombers which need 50 antimatter per bomber).
Flak Burst (Kol) and Telekinetic Push (Halcyon) can be used if you've got the cap ships but have a limited range and cost a lot of AM. Jam Weapons (Kortul) is effective if you've got the fighters or corvettes to clear the bombers up (or you're just delaying the inevitable). All three need good micromanagement (so turn off the AutoCast) to get the most out of them and you need to make sure the bombers don't kill said capital ships too quickly. Vengeance (Rapture) at high levels is highly effective if the bombers are focus-firing a target, you know which ship they are going for and you can cast it on that target before your opponent figures out what you are going to do.
If you're up against the AI, then you could always try luring the fleet into a grav well that grounds strikecraft (e.g. plasma storm) or you can cause bombers to suicide each other if they are in tight groups at a gas giant planet (although be aware, the explosions affect everything, so you need to intercept the bombers with fighters or corvettes before they reach your main fleet).