Dynamic Behavior and Locking of a Semiconductor Laser Subjected to External Injection