Test the command manually
In local practice you host, enter sv_cheats 1, throw a smoke grenade and wait for the cloud. Enter ent_fire smokegrenade_projectile kill and check whether it clears. Use this command only in a practice session you control.
Bind it to a key
Check F8 with bind F8. If it is free, enter bind F8 "ent_fire smokegrenade_projectile kill". Use it after checking the landing spot. The command targets every matching entity, so let your practice partner know before clearing the smoke.
If the command does not work
Check that you host the session and that sv_cheats is enabled. If the smoke stays, let it dissipate and repeat the drill. To undo the test bind, enter unbind F8 if the key was originally free.