The accident occurred as result of a crew member's mistake.
"One member of the crew accidentally pressed the emergency weapons release switch," a military spokesman said.
One fishing boat was in the area, but it wasn't damaged. The incident did not cause any damage to civilians.
The country's naval forces reported that the weapons were not loaded and there was no risk of explosion.