An officer told a High Court trial in Edinburgh he was instructed to follow a shooting suspect's car as it left Skye.