Homoclinic phenomena in laser models