A man armed with a rifle rammed a vehicle into a major synagogue in a Detroit suburb and was fatally shot by security.