Mohamud had earlier been given phony explosives by undercover officers , who first learned of his alleged plot last year .