Armed officers shot the man in the secure car park of a police station in Derby.