A man shot in Northern Ireland has been denied permission on anti-terrorism grounds to travel to Scotland for surgery, his solicitor has said.