A former immigration detainee has lashed out in court over delays to his case after allegedly chasing police with a metal pole, forcing an officer to shoot him.