Ingesting water can indeed put the fire out, though could depend on engine and circumstances. Metro had a double failure in flight put down to flight in a torrential downpour, crashed. 737 had both fires go out in rain and made a safe undamaged dead stick landing. Fire fighters in Singapore had a hell of a time trying to shut down an engine of a 380 using water, eventually succeeded.