How to make a character(obstacle) throw an object(grenade specifically)

My game is based on physics, and I want the obstacle to throw a grenade at the player when close.