State media says test took place during naval exercise, the first Tehran has held since 19 soldiers were killed by friendly fire during drill in May