LOS ANGELES – Troubled music maestro Phil Spector told cops he blew away a B-movie actress by accident – then changed his story hours later, claiming she shot herself, according to grand jury transcripts made public yesterday.

As he was being arrested inside his mansion in suburban L.A., Spector allegedly chastised cops and said he didn’t mean to shoot actress Lana Clarkson, 40.

” ‘What’s wrong with you guys? What are you doing? I didn’t mean to shoot her. It was an accident,’ ” Alhambra Police Officer Beatrice Rodriguez told grand jurors, quoting what Spector said on Feb. 3, 2003.

Rodriguez’s testimony fits with what chauffeur Adriano DeSouza told grand jurors that the world-famous music producer was holding a revolver in his right hand and blurted out, “I think I killed somebody” and shrugged his shoulders.

An L.A. County judge released five volumes of more than 1,000 pages of testimony, given between Sept. 7 and Sept. 20. Spector’s lawyers wanted the testimony kept secret.

Defense lawyer Bruce Cutler maintained his client’s innocence.

“He didn’t kill that woman, no matter how many lies they spread through this one-sided transcript,” Cutler told The Post yesterday. “If any statements were made [by Spector the morning of Clarkson’s murder], none of them were inconsistent with his innocence.”

Police testimony painted Spector as a drunk, angry, uncooperative suspect who needed to be hit twice with a taser gun before an officer could cuff him.

Spector – with bloodshot eyes, slurred speech and smelling of alcohol – continued to berate officers while in custody.

“He was making very rude remarks,” said Alhambra Police Officer Derek Gilliam. “He was being real belligerent, angry – almost being very confrontational.”

When he calmed down, Spector told Gilliam Clarkson had shot herself in the head.

“He said the girl [Clarkson] took the gun – pointing his index finger out, using the thumb as the hammer of the gun, stuck it to the right side of his head and basically said ‘It went like this, Bang’ and he basically fell back into his chair,” Gilliam testified, recounting his interview with Spector almost two years ago.