Supercurrent and its Fano effect in a Josephson Aharonov-Bohm ring