The flight deck of a Royal Navy flagship had to be sprayed heavily with water while on training drills.