Extensions between finite-dimensional simple modules over a generalized current Lie algebra