Facebook has apologized after sending out security check notifications to users who were well out of range of the deadly bombing in Pakistan that killed dozens and injured hundreds.

In a statement posted to its disaster response page, the social networking giant said a "bug" had caused users who were nowhere near the Easter Sunday attack in Pakistan's eastern city of Lahore to receive its Safety Check. The feature encourages people to connect with friends and family during disasters to let them know if they're safe.

"This kind of bug is counter to our intent," Facebook said in the statement.

"We worked quickly to resolve the issue, and we apologize to anyone who mistakenly received the notification.”

The attack, which took place near a park that was crowded with Christians celebrating Easter, killed 65 people and wounded more than 300.

Many Facebook users who were not in Pakistan were alarmed to receive the Safety Check.

Facebook introduced the Safety Check notifications in 2014.

The tech company was criticized for employing it during the terrorist attacks in Paris, but not the day before when suicide bombers detonated explosives in Beirut.