The militants ambushed a security convoy and killed one soldier before the troops returned fire .