Armed 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 and killed, an inquiry has heard.