A picture released by Kenya Wildlife Service (KWS) shows KWS rangers loading onto their vehicle one of the six lions speared to death by residents of the Oloika area in Kitengela, Kajiado County, on June 20, 2012. The retaliatory killing of two adult lionesses, two sub adults and two cubs on the outskirts of Nairobi occurred after the carnivores had invaded a boma and killed four goats.
RESTRICTED TO EDITORIAL USE - MANDATORY CREDIT AFP PHOTO /KENYA WILDLIFE SERVICE - KWS / DENNIS KIBET" - NO MARKETING NO ADVERTISING CAMPAIGNS - DISTRIBUTED AS A SERVICE TO CLIENTSDENNIS KIBET/AFP/GettyImages

Crouching at dawn in the savannah's tall grass, the lions tore through the flesh of eight goats. Dogs barked, women screamed and men with the rank of warrior in this village of Maasai tribesman gathered their spears.

Kenya Wildlife Service rangers responded to the attack, but arrived without a veterinarian and no way to tranquilize the eight lions and remove them from Ilkeek-Lemedung'I, a settlement of mud and stone homes not far from the edges of Nairobi National Park.

In the end, the Maasai men - who come from a tribe renowned for its hunting skills - grew tired of waiting, said Charity Kingangir, whose father's goats were attacked Wednesday. The men speared the lions, killing six: two adult lionesses, two younger lions and two cubs.

The lions had killed eight goats, each worth about $60.

Wednesday's killings highlight the growing threat to Kenya's wildlife posed by the rapid expansion of its capital. A week earlier, residents from another village on Nairobi's outskirts killed a leopard that had eaten a goat. Last month, wildlife service agents shot and killed a lion moving around the Nairobi suburb of Karen. On Thursday, three lions attacked and killed three goats outside Nairobi National Park. Rangers chased the lions back to the park.

Earlier this week, the Kenya Wildlife Service sent out a public notice pleading with people who encounter wild animals "to desist from killing them."

It summed up the problem in a posting on its Facebook page: "Do animals invade human space, or do humans invade animal space? How can we find tolerance for our wild neighbors? And how can we humanely remove them when they get a bit too close?"

As Nairobi enjoys a boom in apartment and road construction, an expanding population center is putting heavy pressure on the animals, especially big cats. Nairobi National Park is the only wildlife park in the world that lies in a country's capital.

Killing lions is a crime in Kenya, but those who lose livestock to big cats frequently retaliate. About 100 lions are killed each year, and the country's lion population has dropped to about 2,000. Lions, especially ones who leave Nairobi National Park, which is not completely fenced in, are at risk. After Wednesday's killings, the park had 37 left, the wildlife agency estimates.

As Nairobi continues to grow, small towns that cropped up on its outskirts expand, fueled by the demand for low-cost housing from the city's working class.

People are settling in traditional migratory corridors that wildlife from Nairobi's park have long used to access the plains around Tanzania's Mount Kilimanjaro, said Peter M. Ngau, a professor of urban and regional planning at the University of Nairobi.