Dynamical response of water in confined geometry