Asteroid characterization through serendipitous detection by the Mid-Infrared Instrument on the James Webb Space Telescope