The witness , who has been granted immunity from prosecution in exchange for his testimony , said he then hid the gun in a dog kennel for five days until it was placed in his loft by Boy K , one of Mercer 's friends .