Officer accused of rape says sex was consensual