Man accused of killing Oakland County deputy to undergo competency exam