The town of Cobar in western New South Wales is mourning the loss of two miners who died in an explosion at the Endeavor mine early on Tuesday morning.