> Was I being stupid of connecting this charger to this device which states that it should be connected to 5V charger?

Technically, no, you were not bring stupid.

The charging capacity of the charger can be larger than the device so long as the device conforms to the charging specifications.

> Within few seconds of connecting, steam started coming out of the charging case. 

That’s not steam.  It’s the “magic smoke” and you let it out.  In all seriousness, the case got burnt to a crisp.



Now