Pakistan tests new homegrown ‘smart weapon’