You cannot kill warthogs. The Sims 2 Castaway (Wii/PS2/PSP) has no combat or hunting mechanics. Animals are NPCs for interaction only.
The game focuses on survival, crafting, relationships, and escape—not violence. Enjoy your porcine companion.