The rapper, who shares two children with superstar partner Rihanna, is accused of firing a semiautomatic pistol at a former friend.