One of the accused had borrowed the illegal firearm from a friend for celebratory firing at another friend’s wedding, police said.