A suspected gunman was fatally shot and a Troy police officer was wounded in a shootout early Sunday morning.