Question: how to make a command block kill players?
Answer: To kill the player executing the command: kill @s.
To kill the player Steve: kill Steve.
To kill item entities: kill @e[type=item]
To kill all entities within 10 blocks: kill @e[distance=..10]
To kill all entities except players: kill @e[type=!player]