Jamaica has declared a state of emergency in the island's second city Montego Bay, where authorities are battling to stem a wave of killings.