Type of antimicrobial agent and method of action of ampicillin