A man suspected of attempted murder was pulled over in a car park when he started firing at officers.