People had to leave their homes after a grenade was found in a shed