Hi,
have you some notions of quantum mechanics ?
Do you know something know as "Slater's rules" ?
If yes you could have an explanation by calculating "effective charge" of an electron taking in account schielding effect creating by others électrons you will find Z* for F = 5.2 and for Cl = 6.1 so that's why Chlorine has a higher electron affinity