Navy dismisses 7th Fleet commander after warship accidents