The detention of two Italian naval officers over the fatal shooting last week of two Indians at sea has caused a diplomatic rift that deepened Wednesday, exposing the risks countries run by increasing the use of arms on commercial vessels to deter piracy.