Updated

Florida authorities say a suspect has been arrested in the shooting death of rapper XXXTentacion.

The Broward Sheriff's Office said in a news release sent Wednesday morning that 22-year-old Michael Boatwright of Ft. Lauderdale was arrested shortly before 4 p.m. Tuesday.

Officials said the musician, whose real name is Jahseh Onfroy, was ambushed by two suspects as he left an upscale motor sports dealership Monday afternoon in his electric BMW. His attorney, David Bogenschutz, said investigators told him the 20-year-old rapper, who pronounced his stage name "Ex Ex Ex ten-ta-see-YAWN," had visited a bank shortly before the shooting and possibly withdrew cash to buy a motorcycle.

Boatwright is being charged with first-degree murder.

Investigators say Boatwright was initially arrested last week on an unrelated drug charge. Jail records don't list an attorney for him.

Also charged in the killing outside a Deerfield Beach motorcycle shop is 22-year-old Dedrick Williams. His lawyer says he'll plead not guilty.

Police said they are still seeking the second gunman as well as a man named Robert Allen who is considered a person of interest.

XXXTentacion was a rising star. He notched a No. 1 album in March with his sophomore effort "?'' and had a top 10 hit with "Sad!" but was facing trial on charges that he beat up his pregnant girlfriend.

His brief career was marked by controversy. In 2016, he was arrested on charges including home invasion for a 2015 incident, and less than a month later was jailed on charges that he attacked his girlfriend, who was pregnant at the time. Later, he faced more charges including witness tampering.

In an interview this month with the Miami New Times, XXXTentacion described his upbringing, which included seeing his mother infrequently and being raised by friends, family and baby sitters. His mother bought him clothes, phones and other gifts. He said he used violence so she would engage with him.

In one video on social media, he said: "If worse things come to worse, I (expletive) die a tragic death or some (expletive), and I'm not able to see out my dreams, I at least want to know that the kids perceive my message and were able to make something of themselves."

He continued later: "I appreciate and love all of you and I believe in you all; do not let your depression make you, do not let your body define your soul, let your soul define your body. Your mind is limitless ... you are worth more than you can believe."

The Associated Press contributed to this report.