Man due in court today after police officer shot