A Highly Magnified and Extremely Compact Galaxy at Redshift 9.51 with Strong Nebular Emission