Two women were arrested Thursday after undercover investigators determined they were trying to build a homemade bomb, prosecutors said.