A Miami Gardens police officer is expected to be okay after police say he was ambushed by gunfire early Friday morning.