Former officer held up hotel guests at gunpoint while in uniform, police say