Police mistakenly used a smoke grenade instead of a stun grenade while responding to an incident where an asylum seeker stabbed six people at a hotel before being shot, an inquiry has heard.