You can kill flying ants by mixing liquid dish soap and water in a spray bottle and then use the dish soap and water to spray the ants whenever you see them.
Another way to get rid of flying ants is to take some tape and place the tape sticky-side up near food sources in your home, the tape will trap the ants when they walk over it