Court acquits Shahnawaz in illegal weapon case