Resident arrested for threatening to shoot a police officer