Off-duty officer shoots man with ax outside church