NEW DELHI (AP) — A forest ranger says a leopard has strayed into a residential area in northern India and injured at least four people before it was locked inside a room.

Kuldip Kumar says a group of rangers reached the area in Jalandhar city in northern Punjab state on Wednesday after residents alerted police. He says the leopard bit one ranger and clawed two others when they tried to capture it with a net, and injured at least one resident who pelted it with rocks. The injuries were not life threatening.

Kumar says the animal entered a room in a building and was locked inside by the rangers.

Conflicts between humans and animals are on the rise in India, where people have begun living in areas near and even inside reserves.