Queen visits barracks of murdered soldier