A popular pastor who led San Diego First Church of the Nazarene in Point Loma for 17 years has lost his job after writing an essay that disagrees with religious doctrine forbidding same-sex marriage.