The suspect accused of lobbing a bomb inside the Santa Maria courthouse and injuring five people Wednesday was planning to kill sheriff's deputies and a judge before his scheduled arraignment on a weapons charge later that morning, authorities said.

In a criminal complaint and affidavit filed Thursday in Los Angeles federal court, prosecutors said Nathaniel James McGuire told law enforcement officers he wanted his homemade bomb to kill deputies staffing the Santa Barbara County Superior Court's security screening station so he could then retrieve guns and Molotov cocktails left inside his car and return to "kill a judge."