Two men have been charged over a pursuit in Queensland, during which a police helicopter was allegedly shot at.