A U.S. Navy ship fired three warning shots Wednesday to fend off Iranian fast boats’ harassing behavior in the northern Persian Gulf in a third incident of “unprofessional” Iranian actions near American warships in two days, a Pentagon spokesman said.