Nepal government, Maoists reach agreement on ending insurgency