HONG KONG — A Taiwan Navy vessel accidentally fired an antiship missile during a training exercise Friday morning, killing the captain of a fishing boat and injuring three crew members, officials said.

The Chin Chiang, a 201-foot patrol ship, fired the Hsiung Feng III missile, which is designed to destroy ships and has a range of about 185 miles, while undergoing an inspection during the exercise at its base in Kaohsiung in southern Taiwan, a Taiwan Navy official said.

The supersonic missile flew for about two minutes toward the Penghu Islands, in the direction of China, but did not cross the midway line in the Taiwan Strait between Taiwan and China, said the official, Vice Adm. Mei Chia-shu.

The missile hit a Kaohsiung-registered fishing boat, killing the captain, said Chen Chung-chi, a spokesman for Taiwan’s Ministry of National Defense. The captain was from Taiwan, and the three injured crew members were from Taiwan, Vietnam and the Philippines, Chen Chu, the mayor of Kaohsiung, wrote on Facebook.