Flying ants are attracted to things that are sweet such as sugar, honey, sugary drinks, sugary food etc.
Basically anything that regular ants are attracted to then flying ants will also be attracted to those same items.
If you notice one flying ant then soon after more will be flying around your home.
The good news is though that the flying part doesn't last long as they lose their wings soon after.
You can kill flying ants with dish soap and water in a spray bottle by spraying the ants directly.
Or place some tape sticky side up to catch the flying ants as they land on it or even use glue traps.